fix checking valid

This commit is contained in:
Terrasse 2024-08-29 20:38:57 +08:00
parent 9eeeca23d7
commit 8cd4fa0d1a

View File

@ -27,9 +27,11 @@ jobs:
echo "valid=1" >> $GITHUB_ENV
fi
- name: Fetch PKGBUILD
if: env.valid == '1'
run: |
wget https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD\?h\=chsrc -O ./PKGBUILD
- name: Update PKGBUILD
if: env.valid == '1'
run: |
sed -i "s/pkgver=.*/pkgver=$version/" PKGBUILD
- name: Publish to AUR