From 3ed83913b2163b43d58991992c064302d7bfd230 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Thu, 7 Jan 2021 09:35:50 +0100 Subject: [PATCH] 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. --- .github/workflows/CICD.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 8c8b4c26..0bb1f705 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -117,14 +117,8 @@ jobs: EXE_suffix="" ; case ${{ matrix.job.target }} in *-pc-windows-*) EXE_suffix=".exe" ;; esac; echo ::set-output name=EXE_suffix::${EXE_suffix} # parse commit reference info - 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; REF_SHAS=${GITHUB_SHA:0:8} - echo ::set-output name=REF_NAME::${REF_NAME} - echo ::set-output name=REF_BRANCH::${REF_BRANCH} - echo ::set-output name=REF_TAG::${REF_TAG} - echo ::set-output name=REF_SHAS::${REF_SHAS} # parse target 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; echo ::set-output name=TARGET_ARCH::${TARGET_ARCH}