Skip to content

Commit

Permalink
ci: only git fetch minimum necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
serhalp committed Dec 11, 2024
1 parent d56933d commit ba991f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Needed for git tag updates below
fetch-tags: true
- uses: actions/setup-node@v4
with:
node-version: '*'
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/typescript-nudge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 🔎 Get changed JavaScript files
id: changed-javascript-files
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:
if: ${{ startsWith(github.head_ref, 'release-') }}
- uses: actions/checkout@v4
with:
# Needed for `nrwl/nx-set-shas` Action, ultimately for `nx affected`
fetch-depth: 0
fetch-tags: false
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
- uses: nrwl/nx-set-shas@v3
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
Expand Down Expand Up @@ -75,7 +77,9 @@ jobs:
if: ${{ startsWith(github.head_ref, 'release-') }}
- uses: actions/checkout@v4
with:
# Needed for `nrwl/nx-set-shas` Action, ultimately for `nx affected`
fetch-depth: 0
fetch-tags: false
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
- uses: nrwl/nx-set-shas@v3
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
Expand Down Expand Up @@ -183,8 +187,6 @@ jobs:
if: ${{ startsWith(github.head_ref, 'release-') }}
- name: Git checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
- name: setup pnpm/yarn
run: corepack enable
Expand Down

0 comments on commit ba991f3

Please sign in to comment.