mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-11-22 13:28:26 +08:00
fix bug of version tag
This commit is contained in:
parent
efe64f6eda
commit
9d27c29d96
7
.github/workflows/pkg-aur-bin.yml
vendored
7
.github/workflows/pkg-aur-bin.yml
vendored
|
@ -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: |
|
||||
|
|
Loading…
Reference in New Issue
Block a user