From fae1e324efa5301137a1e976c31cef9f8ac75cb2 Mon Sep 17 00:00:00 2001 From: acheronfail Date: Sun, 19 Nov 2023 20:19:51 +1030 Subject: [PATCH] actions: update i3stat-git aur package automatically --- .github/workflows/verify.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 8de1590..a6fa746 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -1,6 +1,8 @@ on: + push: + branches: [ "next" ] pull_request: - branches: [ "master" ] + branches: [ "master", "next" ] env: CARGO_TERM_COLOR: always @@ -38,3 +40,19 @@ jobs: - run: just setup - run: just build - run: DEBUG=1 just test + + release-aur-git: + name: Update AUR(i3stat-git) + needs: ['verify'] + runs-on: ubuntu-latest + # this should only run on pushes to `next`, not pull requests to it + if: github.event_name == 'push' + steps: + - uses: actions/checkout@v4 + with: + repository: ssh://aur@aur.archlinux.org/i3stat-git.git + ssh-key: ${{ secrets.AUR_SSH_KEY }} + ssh-known-hosts: ${{ env.SSH_KNOWN_HOSTS }} + - uses: extractions/setup-just@v1 + - run: just update + - run: git push