Skip to content

Commit

Permalink
ci: fix build image
Browse files Browse the repository at this point in the history
Fetch git tags manually.

Ref actions/checkout#1467
  • Loading branch information
gsanchietti committed Jul 30, 2024
1 parent 5e755b6 commit d7c1b75
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ jobs:
GH_REPO: ${{ github.repository }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch tag annotations
run: |
# Fetch tag manually because fetch-tags option for checkout@v4 does not work
git fetch --force --tags --depth 1
- id: read_tag
name: Set VERSION env variable
if: ${{ startsWith(github.ref, 'refs/tags') }}
Expand Down

0 comments on commit d7c1b75

Please sign in to comment.