From be49e014f85f8ccb3d230323cfae46df1d85c322 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Fri, 30 Sep 2022 20:47:01 +0200 Subject: [PATCH] Checkout code before tagging (#3382) --- .github/workflows/deploy-release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/deploy-release.yml b/.github/workflows/deploy-release.yml index 3d8d121d..67678460 100644 --- a/.github/workflows/deploy-release.yml +++ b/.github/workflows/deploy-release.yml @@ -79,6 +79,12 @@ jobs: ghcr.io/github/super-linter:${{ matrix.images.container-image-id-prefix }}v4 ghcr.io/github/super-linter:${{ matrix.images.container-image-id-prefix }}${{ env.RELEASE_VERSION }} + - name: Checkout code + uses: actions/checkout@v3 + with: + # Full git history is needed to get a proper list of commits and tags + fetch-depth: 0 + # We use ^{} to recursively deference the tag to get the commit the tag is pointing at. # Then, we use that reference to create new tags, so that the new tags point to the commit # the original tag was pointing to, and not to the original tag.