From 39283414bc54bb334e65555d122834798de403b8 Mon Sep 17 00:00:00 2001 From: Ankur Banerjee Date: Fri, 26 May 2023 17:46:26 +0100 Subject: [PATCH] ci(release): Fix SC1072 --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9c8623a28..80a0fe0eb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,7 +80,8 @@ jobs: - name: Check whether to execute release id: execute-release run: | - if [[ git tag --points-at ${{ github.sha }} --list 'v*' ]]; then + tag=$(git describe --tags --exact-match) + if [[ $tag =~ ^v ]]; then echo "EXECUTE_RELEASE=true" >> "$GITHUB_OUTPUT" else echo "EXECUTE_RELEASE=false" >> "$GITHUB_OUTPUT"