From 6ce04f0eed0427ef5bdb4daa2e53af2afc6e4432 Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Fri, 10 Apr 2020 08:40:41 -0500 Subject: [PATCH] maint/CICD ~ fix GITHUB_REF parsing --- .github/workflows/CICD.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 4798f731d10..6b379e2d0a9 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -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}