Skip to content

Commit 3fd706c

Browse files
committed
fix: retrieval of base branch in release workflow
1 parent 2ff17fa commit 3fd706c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci_cd_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
V_AND_MAJOR=${{ env.V_AND_MAJOR }}
5252
MAJOR="${V_AND_MAJOR#v}"
5353
echo "MAJOR=${MAJOR}" >> $GITHUB_ENV
54-
if [[ $GITHUB_REF != "refs/heads/release/$MAJOR.${{ env.MINOR }}" ]]; then
54+
if [[ ${{ github.event.base_ref }} != "refs/heads/release/$MAJOR.${{ env.MINOR }}" ]]; then
5555
echo "::error::Tag ${{ github.ref_name }} does not match branch version. wrong branch."
5656
exit 1
5757
fi

0 commit comments

Comments
 (0)