Skip to content

Commit

Permalink
ci(release): set checkout fetch-depth to 0 to also fetch tags
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
basti1302 committed Sep 5, 2022
1 parent 5302542 commit d4b1823
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
# 0 = all, default is 1
fetch-depth: 1337
# With fetch-depth 0 the checkout action will also fetch all tags and branches. We need the tags for
# ./disallow-major-release.sh to work.
fetch-depth: 0
token: ${{ secrets.GH_PAT }}
- uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit d4b1823

Please sign in to comment.