mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-11-25 09:41:46 +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: |
|
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: |
|
||||||
|
|
Loading…
Reference in New Issue
Block a user