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: |