tweak the AUR bot
I want to make some changes to the base recipe, so we need to make sure
we always set `pkgrel` back to 1 for every new release of Juliaup. Also
include the new version in the commit message to make the git history a
bit easier to read.
@@ -372,6 +372,7 @@ jobs:
run: |
export VERSION=$(echo $GH_REF | sed 's:refs/tags/v::')
sed -i "s/^pkgver=.*\$/pkgver=${VERSION}/g" PKGBUILD
+ sed -i "s/^pkgrel=.*\$/pkgrel=1/g" PKGBUILD
env:
GH_REF: ${{ github.ref }}
- name: Update .SRCINFO and checksum
@@ -383,10 +384,13 @@ jobs:
srcinfo: true
- name: Commit and push changes
run: |
+ export VERSION=$(echo $GH_REF | sed 's:refs/tags/v::')
git config --global user.email "simeondavidschaub99@gmail.com"
git config --global user.name 'Your friendly Juliaup bot'
- git commit -a -m 'automated version bump'
+ git commit -a -m "Version ${VERSION} (automated version bump)"
git push origin master
+ env:
+ GH_REF: ${{ github.ref }}
deploy-dev-channel-s3:
needs: [deploy-s3-release-binaries,test-juliaup]
