1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 12:46:44 +00:00

fix aur release out-of-band version

This commit is contained in:
deadc0de6
2024-08-28 14:45:47 +02:00
parent 194c8ca384
commit 7050cf9cab

View File

@@ -12,7 +12,7 @@ jobs:
env:
RELEASE_TAG: ${{ github.ref }}
run: |
version=$(echo ${RELEASE_TAG} | sed 's#^.*v##g')
version=$([ -n "${RELEASE_TAG}" ] && (echo "${RELEASE_TAG}" | sed 's#^.*v##g') || (cat dotdrop/version.py | grep version |sed "s/^__vers.*= '\([^']*\)'/\1/g"))
sed -i "s/^pkgver=.*$/pkgver=${version}/g" packages/arch-dotdrop/PKGBUILD
cat packages/arch-dotdrop/PKGBUILD
- name: Publish to aur