diff options
author | Martin Nordholts <enselic@gmail.com> | 2021-01-07 09:35:50 +0100 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2021-01-07 10:54:00 +0100 |
commit | 3ed83913b2163b43d58991992c064302d7bfd230 (patch) | |
tree | d8daf616d39afb6906d2bce2f5e70dc30e89a123 /.github | |
parent | 63460f4bf94ea5a8706272faba507fd645d0d07d (diff) |
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.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/CICD.yml | 6 |
1 files changed, 0 insertions, 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} |