From 509c1afd5bcd53701e5fe043bf7ef494526eed51 Mon Sep 17 00:00:00 2001 From: konstantinos Date: Sat, 17 Aug 2024 15:35:06 +0300 Subject: [PATCH] ci: checkout code before checking tags on branches --- .github/workflows/cicd.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index d99b224..3689c4a 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -84,6 +84,10 @@ jobs: echo PIPE_DOCS_GITOPS_POLICY='1' >> $GITHUB_ENV fi + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # 0 indicates all history for all branches and tags. + # Check if a tag was pushed on the 'release' branch - if: startsWith(github.event.ref, 'refs/tags/v') name: "Check if '${{ github.ref }}' tag is on '${{ env.RELEASE_BRANCH }}' branch"