From 7ef05d195f5d3bcfb0fed32c3f0c877adb9011e7 Mon Sep 17 00:00:00 2001 From: Khemissi Amir <amir.khemissi@insat.ucar.tn> Date: Mon, 10 Apr 2023 16:59:00 +0100 Subject: [PATCH] CI: Moved away from `GITHUB_REF` in favor of `github.ref_name`. (#5118) --- .github/workflows/ci.build.release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.build.release.yml b/.github/workflows/ci.build.release.yml index e6e940f6..64616d00 100644 --- a/.github/workflows/ci.build.release.yml +++ b/.github/workflows/ci.build.release.yml @@ -49,19 +49,19 @@ jobs: id: ci_tag_release_version if: contains(env.DOCKER_BUILD_ENABLED, 'true') shell: bash - run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/tags/} | cut -c 9-)" + run: echo "##[set-output name=tag;]$(echo ${{github.ref_name}} | cut -c 9-)" - name: Extract Tag Release Major id: ci_tag_release_major if: contains(env.DOCKER_BUILD_ENABLED, 'true') shell: bash - run: echo "##[set-output name=tag;]$(echo ${{steps.ci_tag_release_version.outputs.tag}} | cut -f1-1 -d'.')" + run: echo "##[set-output name=tag;]$(echo ${{steps.ci_tag_release_version.outputs.tag}} | cut -f 1-1 -d '.')" - name: Extract Tag Release Minor id: ci_tag_release_minor if: contains(env.DOCKER_BUILD_ENABLED, 'true') shell: bash - run: echo "##[set-output name=tag;]$(echo ${{steps.ci_tag_release_version.outputs.tag}} | cut -f1-2 -d'.')" + run: echo "##[set-output name=tag;]$(echo ${{steps.ci_tag_release_version.outputs.tag}} | cut -f 1-2 -d '.')" - name: Build and Push if: contains(env.DOCKER_BUILD_ENABLED, 'true') -- GitLab