-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 929 Bytes
/
publish-aur.yml
File metadata and controls
38 lines (30 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Publish to AUR
on:
push:
pull_request:
workflow_dispatch:
jobs:
aur-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
- name: Clone AUR repository
run: |
git clone ssh://aur@aur.archlinux.org/python-i686-bin.git aur-repo
cd aur-repo
- name: Copy necessary files
run: |
cp PKGBUILD .SRCINFO aur-repo/
cd aur-repo
git add PKGBUILD .SRCINFO
- name: Commit and push
run: |
cd aur-repo
git config --global user.name "GitHub Actions"
git config --global user.email "github-actions@github.com"
git commit -m "Automated update: PKGBUILD and .SRCINFO" || echo "No changes to commit"
git push