3.1.1 #48
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update the AUR package | |
| on: | |
| workflow_dispatch: | |
| release: | |
| types: [published] | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: "Get the latest release" | |
| id: latest_release | |
| uses: InsonusK/[email protected] | |
| with: | |
| myToken: ${{ secrets.GITHUB_TOKEN }} | |
| exclude_types: "draft|prerelease" | |
| view_top: 1 | |
| - name: Fetch the AppImages | |
| run: | | |
| wget -q https://r2.cheatbreaker.net/Launcher/master/Linux/amd64/CheatBreaker.AppImage | |
| wget -q https://r2.cheatbreaker.net/Launcher/master/Linux/arm64/CheatBreaker-ARM64.AppImage | |
| - name: Update the PKG version and md5sums in the PKGBUILD | |
| run: | | |
| sed -i 's/^pkgver=.*/pkgver=${{ steps.latest_release.outputs.tag_name }}/' ./AUR/PKGBUILD | |
| sed -i "s#^md5sums_x86_64=.*#md5sums_x86_64=('$(md5sum ./CheatBreaker.AppImage | cut -d' ' -f1)')#" ./AUR/PKGBUILD | |
| sed -i "s#^md5sums_arm64=.*#md5sums_arm64=('$(md5sum ./CheatBreaker-ARM64.AppImage | cut -d' ' -f1)')#" ./AUR/PKGBUILD | |
| - name: Publish AUR package | |
| uses: KSXGitHub/[email protected] | |
| with: | |
| pkgname: cheatbreaker | |
| pkgbuild: ./AUR/PKGBUILD | |
| commit_username: ${{ secrets.AUR_USERNAME }} | |
| commit_email: ${{ secrets.AUR_EMAIL }} | |
| ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} |