File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ DRY_RUN=false
18
18
PACKAGE=ngx-form-errors
19
19
20
20
EXPECTED_REPOSITORY=" NationalBankBelgium/ngx-form-errors"
21
- GH_ACTIONS_TAG =${GH_ACTIONS_TAG :- " " }
21
+ GITHUB_REF =${GITHUB_REF :- " " }
22
22
23
23
# ----------------------------------------------
24
24
# Uncomment block below to test locally
@@ -29,7 +29,7 @@ GH_ACTIONS_TAG=${GH_ACTIONS_TAG:-""}
29
29
# touch ${LOGS_FILE}
30
30
# GITHUB_ACTIONS=true
31
31
# GITHUB_REPOSITORY="NationalBankBelgium/ngx-form-errors"
32
- # GH_ACTIONS_TAG=" fooBar"
32
+ # GITHUB_REF="refs/tags/ fooBar"
33
33
# ----------------------------------------------
34
34
35
35
readonly currentDir=$( cd $( dirname $0 ) ; pwd)
@@ -89,7 +89,7 @@ if [[ ${GITHUB_ACTIONS} == true ]]; then
89
89
90
90
logInfo " Verifying if this build has been triggered for a tag"
91
91
92
- if [[ ${GH_ACTIONS_TAG } == " " ]]; then
92
+ if [[ ${GITHUB_REF } == refs/tags/ * ]]; then
93
93
logInfo " Not publishing because this is not a build triggered for a tag" 1
94
94
exit 0;
95
95
else
You can’t perform that action at this time.
0 commit comments