Skip to content

Commit

Permalink
pkgrel increment
Browse files Browse the repository at this point in the history
  • Loading branch information
wubbl0rz committed Apr 28, 2023
1 parent 51e4df9 commit 33462c1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,16 @@ jobs:
git config --global user.name "${{ github.repository_owner }}"
cd vmchamp-bin
REL=1
if grep "${{ github.ref_name }}" PKGBUILD; then
REL=$(( $(grep pkgrel PKGBUILD | cut -d = -f 2) + 1 ))
fi
sed -i s/pkgrel=.*/pkgrel=$REL/g PKGBUILD
sed -i s/pkgver=.*/pkgver=${{ github.ref_name }}/g PKGBUILD
useradd build
chown -R build:build /tmp/vmchamp-bin
sudo -u build makepkg --force --printsrcinfo > .SRCINFO
Expand Down

0 comments on commit 33462c1

Please sign in to comment.