Skip to content

Commit

Permalink
ci: ♻️ use a limited range of files for checkout (#2789)
Browse files Browse the repository at this point in the history
  • Loading branch information
Okinea Dev authored Jan 6, 2025
1 parent a767a83 commit 42d4960
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/color-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/icon-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,20 @@ 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
with:
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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/potential-duplicates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42d4960

Please sign in to comment.