fix bug of version tag

This commit is contained in:
Terrasse 2024-08-29 20:20:58 +08:00
parent efe64f6eda
commit 9d27c29d96

View File

@ -17,10 +17,11 @@ jobs:
run: | run: |
if [[ ! ${{ steps.get_tag.outputs.tag }} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then if [[ ! ${{ steps.get_tag.outputs.tag }} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Abnormal version tag: ${{ steps.get_tag.outputs.tag }}" echo "Abnormal version tag: ${{ steps.get_tag.outputs.tag }}"
echo "valid=false" >> $GITHUB_ENV echo "Exiting..."
exit 0
else else
echo "version=${{ steps.get_tag.outputs.tag:1 }}" >> $GITHUB_ENV tag=$(echo ${{ steps.get_tag.outputs.tag }} | sed 's/^v//')
echo "valid=true" >> $GITHUB_ENV echo "version=$tag" >> $GITHUB_ENV
fi fi
- name: Fetch PKGBUILD - name: Fetch PKGBUILD
run: | run: |