From 26a9f2e6632a86061d6df8fcc0de4a18158d3be9 Mon Sep 17 00:00:00 2001 From: FlightlessMango Date: Wed, 19 Apr 2023 23:18:44 +0200 Subject: [PATCH] arch-package: set pkgver before makepkg --- .github/workflows/arch-package.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/arch-package.yml b/.github/workflows/arch-package.yml index 54d9102c..17da027a 100644 --- a/.github/workflows/arch-package.yml +++ b/.github/workflows/arch-package.yml @@ -26,6 +26,8 @@ jobs: echo "nobody ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers chown nobody:nobody pkgbuild cd pkgbuild + pkgver=$(git describe --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g') + sed -i "s/pkgver=.*/pkgver=$pkgver/g" PKGBUILD sudo -u nobody -- sh -c "makepkg -fsiCc --noconfirm" - name: Edit release and add files env: