ci: clone the repository before tagging (#5208)

Clone the repository in the release workflow otherwise we cannot create
tags.
This commit is contained in:
Marco Ferrari 2024-01-31 12:28:15 +01:00 committed by GitHub
parent ff5037c060
commit 5c67776f9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -243,6 +243,10 @@ jobs:
ghcr.io/super-linter/super-linter:slim-${{ env.SEMVER_MAJOR_VERSION }} ghcr.io/super-linter/super-linter:slim-${{ env.SEMVER_MAJOR_VERSION }}
ghcr.io/super-linter/super-linter:slim-${{ env.RELEASE_VERSION }} ghcr.io/super-linter/super-linter:slim-${{ env.RELEASE_VERSION }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
# No need to tag major.minor.patch because that tag is automatically created when creating the release # No need to tag major.minor.patch because that tag is automatically created when creating the release
- name: Tag major, minor, and latest versions - name: Tag major, minor, and latest versions
if: steps.release.outputs.release_created if: steps.release.outputs.release_created