Skip to content

Commit be92516

Browse files
committed
fix(release): fix release-publish script by reading GITHUB_REF variable instead of custom GH_ACTIONS_TAG var
1 parent 588dd2f commit be92516

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

release-publish.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ DRY_RUN=false
1818
PACKAGE=ngx-form-errors
1919

2020
EXPECTED_REPOSITORY="NationalBankBelgium/ngx-form-errors"
21-
GH_ACTIONS_TAG=${GH_ACTIONS_TAG:-""}
21+
GITHUB_REF=${GITHUB_REF:-""}
2222

2323
#----------------------------------------------
2424
# Uncomment block below to test locally
@@ -29,7 +29,7 @@ GH_ACTIONS_TAG=${GH_ACTIONS_TAG:-""}
2929
#touch ${LOGS_FILE}
3030
#GITHUB_ACTIONS=true
3131
#GITHUB_REPOSITORY="NationalBankBelgium/ngx-form-errors"
32-
#GH_ACTIONS_TAG="fooBar"
32+
#GITHUB_REF="refs/tags/fooBar"
3333
#----------------------------------------------
3434

3535
readonly currentDir=$(cd $(dirname $0); pwd)
@@ -89,7 +89,7 @@ if [[ ${GITHUB_ACTIONS} == true ]]; then
8989

9090
logInfo "Verifying if this build has been triggered for a tag"
9191

92-
if [[ ${GH_ACTIONS_TAG} == "" ]]; then
92+
if [[ ${GITHUB_REF} == refs/tags/* ]]; then
9393
logInfo "Not publishing because this is not a build triggered for a tag" 1
9494
exit 0;
9595
else

0 commit comments

Comments
 (0)