on master help sign in
CICD: Build: Remove unused REF_* outputs

There is no usage of `steps.vars.outputs.REF_*` so no need to setup such things. Also remove setting up REF_NAME and REF_BRANCH env vars, since they are never read.

commit3ed83913b2163b43d58991992c064302d7bfd230 authorMartin Nordholts <enselic@gmail.com> dateThu 7 Jan 2021, 09:35 (6 years ago) parent63460f4
1 file changed−6
.github/workflows/CICD.yml−6
.github/workflows/CICD.yml−6
@@ -117,14 +117,8 @@ jobs:
117117 EXE_suffix="" ; case ${{ matrix.job.target }} in *-pc-windows-*) EXE_suffix=".exe" ;; esac;
118118 echo ::set-output name=EXE_suffix::${EXE_suffix}
119119 # parse commit reference info
120− REF_NAME=${GITHUB_REF#refs/*/}
121− unset REF_BRANCH ; case ${GITHUB_REF} in refs/heads/*) REF_BRANCH=${GITHUB_REF#refs/heads/} ;; esac;
122120 unset REF_TAG ; case ${GITHUB_REF} in refs/tags/*) REF_TAG=${GITHUB_REF#refs/tags/} ;; esac;
123121 REF_SHAS=${GITHUB_SHA:0:8}
124− echo ::set-output name=REF_NAME::${REF_NAME}
125− echo ::set-output name=REF_BRANCH::${REF_BRANCH}
126− echo ::set-output name=REF_TAG::${REF_TAG}
127− echo ::set-output name=REF_SHAS::${REF_SHAS}
128122 # parse target
129123 unset TARGET_ARCH ; case ${{ matrix.job.target }} in arm-unknown-linux-gnueabihf) TARGET_ARCH=arm ;; i686-*) TARGET_ARCH=i686 ;; x86_64-*) TARGET_ARCH=x86_64 ;; esac;
130124 echo ::set-output name=TARGET_ARCH::${TARGET_ARCH}