maint/CICD ~ fix GITHUB_REF parsing
@@ -163,9 +163,11 @@ jobs:
echo set-output name=EXE_suffix::${EXE_suffix}
echo ::set-output name=EXE_suffix::${EXE_suffix}
# parse commit reference info
+ echo GITHUB_REF=${GITHUB_REF}
+ echo GITHUB_SHA=${GITHUB_SHA}
REF_NAME=${GITHUB_REF#refs/*/}
- unset REF_BRANCH ; case '${GITHUB_REF}' in refs/heads/*) REF_BRANCH=${GITHUB_REF#refs/heads/} ;; esac;
- unset REF_TAG ; case '${GITHUB_REF}' in refs/tags/*) REF_TAG=${GITHUB_REF#refs/tags/} ;; esac;
+ unset REF_BRANCH ; case "${GITHUB_REF}" in refs/heads/*) REF_BRANCH=${GITHUB_REF#refs/heads/} ;; esac;
+ unset REF_TAG ; case "${GITHUB_REF}" in refs/tags/*) REF_TAG=${GITHUB_REF#refs/tags/} ;; esac;
REF_SHAS=${GITHUB_SHA:0:8}
echo set-output name=REF_NAME::${REF_NAME}
echo set-output name=REF_BRANCH::${REF_BRANCH}
