Skip to content

Commit

Permalink
chore: add manual run to update_aur.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
decipher3114 committed Oct 24, 2024
1 parent 0963bee commit b881b60
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/update_aur.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Update AUR

on:
workflow_dispatch:
workflow_run:
workflows: ['Release']
types:
Expand All @@ -9,8 +10,11 @@ on:
jobs:
run_on_release_success:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup git auth
run: |
mkdir -p ~/.ssh
Expand All @@ -24,12 +28,19 @@ jobs:
run: |
git clone ssh://aur@aur.archlinux.org/capter.git
- name: Update AUR
- name: Update PKGBUILD
uses: heyhusen/archlinux-package-action@v2
with:
path: capter
flags: '--nodeps --nobuild'
namcap: false

- name: Generate .SRCINFO
uses: heyhusen/archlinux-package-action@v2
with:
path: capter
flags: ''
namcap: false
srcinfo: true

- name: Push Update
Expand Down

0 comments on commit b881b60

Please sign in to comment.