Skip to content

Commit b9daa55

Browse files
committed
ci: only git fetch minimum necessary
1 parent 1f3df38 commit b9daa55

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/pre-release.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212
with:
13-
fetch-depth: 0
13+
# Needed for git tag updates below
14+
fetch-tags: true
1415
- uses: actions/setup-node@v4
1516
with:
1617
node-version: '*'

.github/workflows/typescript-nudge.yml

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
with:
17-
fetch-depth: 0
1816

1917
- name: 🔎 Get changed JavaScript files
2018
id: changed-javascript-files

.github/workflows/workflow.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121
if: ${{ startsWith(github.head_ref, 'release-') }}
2222
- uses: actions/checkout@v4
2323
with:
24+
# Needed for `nrwl/nx-set-shas` Action, ultimately for `nx affected`
2425
fetch-depth: 0
26+
fetch-tags: false
2527
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
2628
- uses: nrwl/nx-set-shas@v3
2729
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
@@ -75,7 +77,9 @@ jobs:
7577
if: ${{ startsWith(github.head_ref, 'release-') }}
7678
- uses: actions/checkout@v4
7779
with:
80+
# Needed for `nrwl/nx-set-shas` Action, ultimately for `nx affected`
7881
fetch-depth: 0
82+
fetch-tags: false
7983
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
8084
- uses: nrwl/nx-set-shas@v3
8185
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
@@ -183,8 +187,6 @@ jobs:
183187
if: ${{ startsWith(github.head_ref, 'release-') }}
184188
- name: Git checkout
185189
uses: actions/checkout@v4
186-
with:
187-
fetch-depth: 0
188190
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
189191
- name: setup pnpm/yarn
190192
run: corepack enable

0 commit comments

Comments
 (0)