From 9d27c29d96872a02060db48ae12d898f09d743f2 Mon Sep 17 00:00:00 2001 From: Terrasse Date: Thu, 29 Aug 2024 20:20:58 +0800 Subject: [PATCH] fix bug of version tag --- .github/workflows/pkg-aur-bin.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pkg-aur-bin.yml b/.github/workflows/pkg-aur-bin.yml index 3098df7..51c02d6 100644 --- a/.github/workflows/pkg-aur-bin.yml +++ b/.github/workflows/pkg-aur-bin.yml @@ -17,10 +17,11 @@ jobs: run: | if [[ ! ${{ steps.get_tag.outputs.tag }} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then echo "Abnormal version tag: ${{ steps.get_tag.outputs.tag }}" - echo "valid=false" >> $GITHUB_ENV + echo "Exiting..." + exit 0 else - echo "version=${{ steps.get_tag.outputs.tag:1 }}" >> $GITHUB_ENV - echo "valid=true" >> $GITHUB_ENV + tag=$(echo ${{ steps.get_tag.outputs.tag }} | sed 's/^v//') + echo "version=$tag" >> $GITHUB_ENV fi - name: Fetch PKGBUILD run: |