From d0a6f21e054d405b99f87a2541501534e7bb4c4a Mon Sep 17 00:00:00 2001 From: moss <> Date: Thu, 3 Apr 2025 17:11:49 +0700 Subject: [PATCH] tag command --- .github/workflows/release_command.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release_command.yaml b/.github/workflows/release_command.yaml index d5bf4309..462ed688 100644 --- a/.github/workflows/release_command.yaml +++ b/.github/workflows/release_command.yaml @@ -20,12 +20,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - # skip Set up QEMU because it fail on act and container + - name: Set output tags + id: vars + run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT - name: Gen Version id: gen_ver run: | if [[ $GITHUB_REF == 'refs/tags/'* ]]; then - IMAGE_VER='${GITHUB_REF/refs\/tags\//}' + IMAGE_VER=${{ steps.vars.outputs.tag }} else IMAGE_VER=${{ github.event.inputs.IMAGE_VER }} fi @@ -33,7 +35,7 @@ jobs: IMAGE_VER='test-vBeta' fi echo '::set-output name=image_ver::'$IMAGE_VER - - name: Test Version + - name: Check Version run: | echo $GITHUB_REF echo ${{ steps.gen_ver.outputs.image_ver }}