Skip to content

Commit 3c260c5

Browse files
committed
ci: only git fetch HEAD unless more is needed
1 parent d56933d commit 3c260c5

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

.github/workflows/pre-release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212
with:
13+
# Needed for git tag updates below
1314
fetch-depth: 0
1415
- uses: actions/setup-node@v4
1516
with:

.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

-6
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020
echo "IS_RELEASE=true" >> $env:GITHUB_OUTPUT
2121
if: ${{ startsWith(github.head_ref, 'release-') }}
2222
- uses: actions/checkout@v4
23-
with:
24-
fetch-depth: 0
2523
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
2624
- uses: nrwl/nx-set-shas@v3
2725
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
@@ -74,8 +72,6 @@ jobs:
7472
echo "IS_RELEASE=true" >> $env:GITHUB_OUTPUT
7573
if: ${{ startsWith(github.head_ref, 'release-') }}
7674
- uses: actions/checkout@v4
77-
with:
78-
fetch-depth: 0
7975
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
8076
- uses: nrwl/nx-set-shas@v3
8177
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
@@ -183,8 +179,6 @@ jobs:
183179
if: ${{ startsWith(github.head_ref, 'release-') }}
184180
- name: Git checkout
185181
uses: actions/checkout@v4
186-
with:
187-
fetch-depth: 0
188182
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
189183
- name: setup pnpm/yarn
190184
run: corepack enable

0 commit comments

Comments
 (0)