From a0af4b1415283a05bd09886e73db14000a95e8e1 Mon Sep 17 00:00:00 2001 From: Markson Hon Date: Wed, 10 Jul 2024 21:05:12 +0800 Subject: [PATCH] ci: fix Docker image tag uploading --- .github/workflows/release_main.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release_main.yml b/.github/workflows/release_main.yml index 5f17e00b..599833f1 100644 --- a/.github/workflows/release_main.yml +++ b/.github/workflows/release_main.yml @@ -764,14 +764,13 @@ jobs: - name: Check Version id: prep run: | - tag=$(git describe --tags $(git rev-list --tags --max-count=1)) + tag=${{ inputs.tag }} version=$(echo $tag | sed 's/v//g') echo "VERSION=$version" >> $GITHUB_OUTPUT echo "VERSION=$version" >> $GITHUB_ENV - TAG=$(echo $GITHUB_REF | cut -d / -f 3) IMAGE="mzz2017/v2raya" echo image=${IMAGE} >> $GITHUB_OUTPUT - echo tag=${TAG} >> $GITHUB_OUTPUT + echo tag=${{ inputs.tag }} >> $GITHUB_OUTPUT sed -i "s|Realv2rayAVersion|$version|g" install/docker/docker_helper.sh - name: Set up QEMU uses: docker/setup-qemu-action@v3.0.0