diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 1e9ce084..9b812153 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -38,11 +38,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - - name: Get history and tags for SCM versioning to work - run: | - git fetch --prune --unshallow - git fetch --depth=1 origin +refs/tags/*:refs/tags/* + with: + fetch-tags: true - uses: actions/setup-python@v5 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 67bd762b..13c4d350 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,3 +1,5 @@ +name: Create GitHub release + on: push: tags: @@ -13,6 +15,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-tags: true - name: Release uses: softprops/action-gh-release@v1