Skip to content

Commit

Permalink
Update example in README.md (#40)
Browse files Browse the repository at this point in the history
`actions/checkout@v4` would not fetch tags if `fetch-depth` is set to 1 (even if fetch-tags is set to 'true'.

Thus, it's safest to set `fetch-depth` to 0.
  • Loading branch information
dym-ok authored Nov 1, 2023
1 parent 55450aa commit 9bf1dc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ jobs:
create-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: rickstaa/action-create-tag@v1
id: "tag_create"
with:
Expand Down

0 comments on commit 9bf1dc2

Please sign in to comment.