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