Skip to content

Commit

Permalink
set fetch-depth: 0 for GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Mar 12, 2024
1 parent cad0d8f commit ac58d74
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Fetch all history for all tags and branches
run: |
git fetch --prune --unshallow
with:
fetch-depth: 0
- uses: gittools/actions/gitversion/setup@v1.0.0
name: Install GitVersion
with:
Expand Down Expand Up @@ -42,9 +41,8 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Fetch all history for all tags and branches
run: |
git fetch --prune --unshallow
with:
fetch-depth: 0
- uses: gittools/actions/gitversion/setup@v1.0.0
name: Install GitVersion
with:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/different-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ jobs:
GitVersion_FullSemVer: ${{ steps.version_step.outputs.GitVersion_FullSemVer }}
steps:
- uses: actions/checkout@v4
- name: Fetch all history for all tags and branches
run: |
git fetch --prune --unshallow
with:
fetch-depth: 0
- uses: gittools/actions/gitversion/setup@v1.0.0
name: Install GitVersion
with:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/same-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Fetch all history for all tags and branches
run: |
git fetch --prune --unshallow
with:
fetch-depth: 0
- uses: gittools/actions/gitversion/setup@v1.0.0
name: Install GitVersion
with:
Expand Down

0 comments on commit ac58d74

Please sign in to comment.