From 42d4960eb6ba9ead28fb86e07c5930a6efca81cc Mon Sep 17 00:00:00 2001 From: Okinea Dev Date: Mon, 6 Jan 2025 18:51:44 +0000 Subject: [PATCH] =?UTF-8?q?ci:=20=E2=99=BB=EF=B8=8F=20use=20a=20limited=20?= =?UTF-8?q?range=20of=20files=20for=20checkout=20(#2789)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/color-check.yml | 5 +++++ .github/workflows/icon-review.yml | 7 +++++++ .github/workflows/potential-duplicates.yml | 4 ++-- .github/workflows/pr-title.yml | 1 + 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/color-check.yml b/.github/workflows/color-check.yml index 8a88459dd1..aea4c242bd 100644 --- a/.github/workflows/color-check.yml +++ b/.github/workflows/color-check.yml @@ -21,6 +21,11 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: persist-credentials: false + sparse-checkout-cone-mode: false + sparse-checkout: | + .github/actions/update-status-label.sh + material-colors.yml + icons/ - name: 🔄 Fetch target branch run: | diff --git a/.github/workflows/icon-review.yml b/.github/workflows/icon-review.yml index 5e884dceef..598798e728 100644 --- a/.github/workflows/icon-review.yml +++ b/.github/workflows/icon-review.yml @@ -27,6 +27,9 @@ jobs: fetch-depth: 0 path: fork persist-credentials: false + sparse-checkout-cone-mode: false + sparse-checkout: | + icons/ - name: 📥 Checkout Original uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -34,6 +37,10 @@ jobs: fetch-depth: 0 path: main persist-credentials: false + sparse-checkout-cone-mode: false + sparse-checkout: | + .bun-version + icons/ - name: 🔧 Setup Bun uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2 diff --git a/.github/workflows/potential-duplicates.yml b/.github/workflows/potential-duplicates.yml index 107bb346d7..b33b3b1084 100644 --- a/.github/workflows/potential-duplicates.yml +++ b/.github/workflows/potential-duplicates.yml @@ -15,8 +15,8 @@ jobs: filter: '' # Exclude keywords in title before detecting. exclude: '' - # Label to set, when potential duplicates are detected. - label: "🧐 potential-duplicate" + # Label to set, when potential duplicates are detected. + label: "🧐 potential-duplicate" # Get issues with state to compare. Supported state: 'all', 'closed', 'open'. state: all # If similarity is higher than this threshold([0,1]), issue will be marked as duplicate. diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index 24ec125c41..ee3f951662 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -19,6 +19,7 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: # Only fetch the config file from the repository + sparse-checkout-cone-mode: false sparse-checkout: | commitlint.config.js .github/actions/update-status-label.sh