From 5c67776f9d9d3065efda30d47aef21b332fa2173 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Wed, 31 Jan 2024 12:28:15 +0100 Subject: [PATCH] ci: clone the repository before tagging (#5208) Clone the repository in the release workflow otherwise we cannot create tags. --- .github/workflows/cd.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index f8c6a48a..0ccaa213 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -243,6 +243,10 @@ jobs: ghcr.io/super-linter/super-linter:slim-${{ env.SEMVER_MAJOR_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 - name: Tag major, minor, and latest versions if: steps.release.outputs.release_created