Skip to content

Commit

Permalink
actions: update i3stat-git aur package automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
acheronfail committed Nov 19, 2023
1 parent fae154b commit fae1e32
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
on:
push:
branches: [ "next" ]
pull_request:
branches: [ "master" ]
branches: [ "master", "next" ]

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -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://[email protected]/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

0 comments on commit fae1e32

Please sign in to comment.