Skip to content

Commit

Permalink
ci: force depth when fetching tags
Browse files Browse the repository at this point in the history
Try to pull the first 500 tags, hoping a tag is somewehere
  • Loading branch information
gsanchietti committed Jul 30, 2024
1 parent d7c1b75 commit 0f43946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Fetch tag annotations
run: |
# Fetch tag manually because fetch-tags option for checkout@v4 does not work
git fetch --force --tags --depth 1
git fetch --force --tags --depth 500
- id: read_tag
name: Set VERSION env variable
if: ${{ startsWith(github.ref, 'refs/tags') }}
Expand Down

0 comments on commit 0f43946

Please sign in to comment.