mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-11-25 09:41:46 +08:00
fix syntax error
This commit is contained in:
parent
8cd4fa0d1a
commit
5659a0b3c8
4
.github/workflows/pkg-aur-bin.yml
vendored
4
.github/workflows/pkg-aur-bin.yml
vendored
|
@ -19,7 +19,7 @@ jobs:
|
||||||
- name: Validate version tag
|
- name: Validate version tag
|
||||||
run: |
|
run: |
|
||||||
if [[ ! $tag =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
if [[ ! $tag =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||||
echo "Abnormal version tag: $tag""
|
echo "Abnormal version tag: $tag"
|
||||||
echo "valid=0" >> $GITHUB_ENV
|
echo "valid=0" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
version=$(echo $tag | sed 's/^v//')
|
version=$(echo $tag | sed 's/^v//')
|
||||||
|
@ -27,11 +27,9 @@ jobs:
|
||||||
echo "valid=1" >> $GITHUB_ENV
|
echo "valid=1" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
- name: Fetch PKGBUILD
|
- name: Fetch PKGBUILD
|
||||||
if: env.valid == '1'
|
|
||||||
run: |
|
run: |
|
||||||
wget https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD\?h\=chsrc -O ./PKGBUILD
|
wget https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD\?h\=chsrc -O ./PKGBUILD
|
||||||
- name: Update PKGBUILD
|
- name: Update PKGBUILD
|
||||||
if: env.valid == '1'
|
|
||||||
run: |
|
run: |
|
||||||
sed -i "s/pkgver=.*/pkgver=$version/" PKGBUILD
|
sed -i "s/pkgver=.*/pkgver=$version/" PKGBUILD
|
||||||
- name: Publish to AUR
|
- name: Publish to AUR
|
||||||
|
|
Loading…
Reference in New Issue
Block a user