archlinux-aur/.forgejo/workflows/packages.yaml
xengi bfa00e52ce Update .forgejo/workflows/packages.yaml
Signed-off-by: xengi <forgejo@xengi.de>
2026-09-24 16:17:46 +02:00

463 lines
22 KiB
YAML

name: Update packages
on:
schedule:
- cron: '0 12 * * *'
timezone: Europe/Berlin
workflow_dispatch:
jobs:
c-lolcat:
runs-on: debian-stable
env:
PACKAGE_NAME: c-lolcat
container:
image: git.xengi.de/xengi/archlinux-aur:latest
credentials:
username: xengi
password: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Checkout repository
run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE"
- name: Install dependencies
run: yay -Sy --needed --noconfirm --noprogressbar curl jq
- name: Get versions
id: versions
run: |
echo upstream=$(curl -fsSL -H "Authorization: Bearer ${{ secrets.GH_API_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/jaseg/lolcat/tags?per_page=1 | jq -er '.[0].name | ltrimstr("v")') >> "$FORGEJO_OUTPUT"
echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT"
- uses: ./.forgejo/actions/update-aur-package
with:
package-name: ${{ env.PACKAGE_NAME }}
upstream-version: ${{ steps.versions.outputs.upstream }}
aur-version: ${{ steps.versions.outputs.aur }}
test-command: lolcat --help
commit-message: bumped to version ${{ steps.versions.outputs.upstream }}
notify-message: ${{ env.PACKAGE_NAME }} updated from ${{ steps.versions.outputs.aur }} to ${{ steps.versions.outputs.upstream }}
aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }}
pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }}
cephadm:
runs-on: debian-stable
env:
PACKAGE_NAME: cephadm
container:
image: git.xengi.de/xengi/archlinux-aur:latest
credentials:
username: xengi
password: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Checkout repository
run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE"
- name: Install dependencies
run: yay -Sy --needed --noconfirm --noprogressbar curl jq
- name: Get versions
id: versions
shell: bash
run: |
upstream=$(
curl -fsSL https://docs.ceph.com/en/latest/releases/ |
grep -oE 'latest [0-9]+\.[0-9]+\.[0-9]+' |
head -n1 |
cut -d' ' -f2
)
test -n "$upstream"
echo "upstream=$upstream" >> "$FORGEJO_OUTPUT"
echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT"
- uses: ./.forgejo/actions/update-aur-package
with:
package-name: ${{ env.PACKAGE_NAME }}
upstream-version: ${{ steps.versions.outputs.upstream }}
aur-version: ${{ steps.versions.outputs.aur }}
test-command: sudo cephadm --help
commit-message: bumped to version ${{ steps.versions.outputs.upstream }}
notify-message: ${{ env.PACKAGE_NAME }} updated from ${{ steps.versions.outputs.aur }} to ${{ steps.versions.outputs.upstream }}
aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }}
pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }}
cephadm-git:
runs-on: debian-stable
env:
PACKAGE_NAME: cephadm-git
container:
image: git.xengi.de/xengi/archlinux-aur:latest
credentials:
username: xengi
password: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Checkout repository
run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE"
- uses: ./.forgejo/actions/update-aur-package
with:
package-name: ${{ env.PACKAGE_NAME }}
upstream-version: '0'
aur-version: '0'
update-pkgrel: 'false'
git-package: 'true'
test-command: sudo cephadm --help
commit-message: bumped git commit
notify-message: ${{ env.PACKAGE_NAME }} updated git commit
aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }}
pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }}
go-aws-sso:
runs-on: debian-stable
env:
PACKAGE_NAME: go-aws-sso
container:
image: git.xengi.de/xengi/archlinux-aur:latest
credentials:
username: xengi
password: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Checkout repository
run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE"
- name: Install dependencies
run: yay -Sy --needed --noconfirm --noprogressbar curl jq
- name: Get versions
id: versions
run: |
echo upstream=$(curl -fsSL -H "Authorization: Bearer ${{ secrets.GH_API_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/theurichde/${{ env.PACKAGE_NAME }}/releases/latest | jq -er '.tag_name | ltrimstr("v")') >> "$FORGEJO_OUTPUT"
echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT"
- uses: ./.forgejo/actions/update-aur-package
with:
package-name: ${{ env.PACKAGE_NAME }}
upstream-version: ${{ steps.versions.outputs.upstream }}
aur-version: ${{ steps.versions.outputs.aur }}
test-command: go-aws-sso --help
commit-message: bumped to version ${{ steps.versions.outputs.upstream }}
notify-message: ${{ env.PACKAGE_NAME }} updated from ${{ steps.versions.outputs.aur }} to ${{ steps.versions.outputs.upstream }}
aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }}
pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }}
img2xterm:
runs-on: debian-stable
env:
PACKAGE_NAME: img2xterm
container:
image: git.xengi.de/xengi/archlinux-aur:latest
credentials:
username: xengi
password: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Checkout repository
run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE"
- name: Install dependencies
run: yay -Sy --needed --noconfirm --noprogressbar curl jq
- name: Get versions
id: versions
run: |
echo upstream=$(curl -fsSL -H "Authorization: Bearer ${{ secrets.GH_API_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/rossy/${{ env.PACKAGE_NAME }}/tags?per_page=1 | jq -er '.[0].name | ltrimstr("v")') >> "$FORGEJO_OUTPUT"
echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT"
- uses: ./.forgejo/actions/update-aur-package
with:
package-name: ${{ env.PACKAGE_NAME }}
upstream-version: ${{ steps.versions.outputs.upstream }}
aur-version: ${{ steps.versions.outputs.aur }}
test-command: img2xterm --help
commit-message: bumped to version ${{ steps.versions.outputs.upstream }}
notify-message: ${{ env.PACKAGE_NAME }} updated from ${{ steps.versions.outputs.aur }} to ${{ steps.versions.outputs.upstream }}
aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }}
pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }}
img2xterm-git:
runs-on: debian-stable
env:
PACKAGE_NAME: img2xterm-git
container:
image: git.xengi.de/xengi/archlinux-aur:latest
credentials:
username: xengi
password: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Checkout repository
run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE"
- uses: ./.forgejo/actions/update-aur-package
with:
package-name: ${{ env.PACKAGE_NAME }}
upstream-version: '0'
aur-version: '0'
update-pkgrel: 'false'
git-package: 'true'
test-command: img2xterm --help
commit-message: bumped git commit
notify-message: ${{ env.PACKAGE_NAME }} updated git commit
aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }}
pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }}
projen:
runs-on: debian-stable
env:
PACKAGE_NAME: projen
container:
image: git.xengi.de/xengi/archlinux-aur:latest
credentials:
username: xengi
password: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Checkout repository
run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE"
- name: Install dependencies
run: yay -Sy --needed --noconfirm --noprogressbar curl jq
- name: Get versions
id: versions
run: |
echo upstream=$(curl -fsSL https://registry.npmjs.org/${{ env.PACKAGE_NAME }} | jq -er '."dist-tags".latest') >> "$FORGEJO_OUTPUT"
echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT"
- uses: ./.forgejo/actions/update-aur-package
with:
package-name: ${{ env.PACKAGE_NAME }}
upstream-version: ${{ steps.versions.outputs.upstream }}
aur-version: ${{ steps.versions.outputs.aur }}
test-command: projen --help
commit-message: bumped to version ${{ steps.versions.outputs.upstream }}
notify-message: ${{ env.PACKAGE_NAME }} updated from ${{ steps.versions.outputs.aur }} to ${{ steps.versions.outputs.upstream }}
aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }}
pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }}
python-q:
runs-on: debian-stable
env:
PACKAGE_NAME: python-q
container:
image: git.xengi.de/xengi/archlinux-aur:latest
credentials:
username: xengi
password: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Checkout repository
run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE"
- name: Install dependencies
run: yay -Sy --needed --noconfirm --noprogressbar curl jq
- name: Get versions
id: versions
run: |
echo upstream=$(curl -fsSL "https://pypi.org/pypi/${PACKAGE_NAME#python-}/json" | jq -er '.info.version') >> "$FORGEJO_OUTPUT"
echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT"
- uses: ./.forgejo/actions/update-aur-package
with:
package-name: ${{ env.PACKAGE_NAME }}
upstream-version: ${{ steps.versions.outputs.upstream }}
aur-version: ${{ steps.versions.outputs.aur }}
test-command: python -m q
commit-message: bumped to version ${{ steps.versions.outputs.upstream }}
notify-message: ${{ env.PACKAGE_NAME }} updated from ${{ steps.versions.outputs.aur }} to ${{ steps.versions.outputs.upstream }}
aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }}
pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }}
rqlite:
runs-on: debian-stable
env:
PACKAGE_NAME: rqlite
container:
image: git.xengi.de/xengi/archlinux-aur:latest
credentials:
username: xengi
password: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Checkout repository
run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE"
- name: Install dependencies
run: yay -Sy --needed --noconfirm --noprogressbar curl jq
- name: Get versions
id: versions
run: |
echo upstream=$(curl -fsSL -H "Authorization: Bearer ${{ secrets.GH_API_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/${{ env.PACKAGE_NAME }}/${{ env.PACKAGE_NAME }}/releases/latest | jq -er '.tag_name | ltrimstr("v")') >> "$FORGEJO_OUTPUT"
echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT"
- uses: ./.forgejo/actions/update-aur-package
with:
package-name: ${{ env.PACKAGE_NAME }}
upstream-version: ${{ steps.versions.outputs.upstream }}
aur-version: ${{ steps.versions.outputs.aur }}
test-command: |
rqlited --help
rqlite --help
commit-message: bumped to version ${{ steps.versions.outputs.upstream }}
notify-message: ${{ env.PACKAGE_NAME }} updated from ${{ steps.versions.outputs.aur }} to ${{ steps.versions.outputs.upstream }}
aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }}
pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }}
sanic:
runs-on: debian-stable
env:
PACKAGE_NAME: sanic
container:
image: git.xengi.de/xengi/archlinux-aur:latest
credentials:
username: xengi
password: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Checkout repository
run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE"
- name: Install dependencies
run: yay -Sy --needed --noconfirm --noprogressbar curl jq
- name: Get versions
id: versions
run: |
echo upstream=$(curl -fsSL "https://gitlab.com/api/v4/projects/$(printf '%s' 'xengi/${{ env.PACKAGE_NAME }}' | jq -sRr @uri)/releases/permalink/latest" | jq -r '.tag_name') >> "$FORGEJO_OUTPUT"
echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT"
- uses: ./.forgejo/actions/update-aur-package
with:
package-name: ${{ env.PACKAGE_NAME }}
upstream-version: ${{ steps.versions.outputs.upstream }}
aur-version: ${{ steps.versions.outputs.aur }}
test-command: sanic --help
commit-message: bumped to version ${{ steps.versions.outputs.upstream }}
notify-message: ${{ env.PACKAGE_NAME }} updated from ${{ steps.versions.outputs.aur }} to ${{ steps.versions.outputs.upstream }}
aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }}
pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }}
sensu-go:
runs-on: debian-stable
env:
PACKAGE_NAME: sensu-go
container:
image: git.xengi.de/xengi/archlinux-aur:latest
credentials:
username: xengi
password: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Checkout repository
run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE"
- name: Install dependencies
run: yay -Sy --needed --noconfirm --noprogressbar curl jq
- name: Get versions
id: versions
run: |
echo upstream=$(curl -fsSL -H "Authorization: Bearer ${{ secrets.GH_API_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/sensu/${{ env.PACKAGE_NAME }}/releases/latest | jq -er '.tag_name | ltrimstr("v")') >> "$FORGEJO_OUTPUT"
echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}-cli' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT"
- uses: ./.forgejo/actions/update-aur-package
with:
package-name: ${{ env.PACKAGE_NAME }}
upstream-version: ${{ steps.versions.outputs.upstream }}
aur-version: ${{ steps.versions.outputs.aur }}
test-command: |
sensu-backend --help
sensu-agent --help
sensuctl --help
commit-message: bumped to version ${{ steps.versions.outputs.upstream }}
notify-message: ${{ env.PACKAGE_NAME }} updated from ${{ steps.versions.outputs.aur }} to ${{ steps.versions.outputs.upstream }}
aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }}
pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }}
virtualfish:
runs-on: debian-stable
env:
PACKAGE_NAME: virtualfish
container:
image: git.xengi.de/xengi/archlinux-aur:latest
credentials:
username: xengi
password: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Checkout repository
run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE"
- name: Install dependencies
run: yay -Sy --needed --noconfirm --noprogressbar curl jq
- name: Get versions
id: versions
run: |
echo upstream=$(curl -fsSL -H "Authorization: Bearer ${{ secrets.GH_API_TOKEN }}" https://api.github.com/repos/justinmayer/${{ env.PACKAGE_NAME }}/releases/latest | jq -er '.tag_name') >> "$FORGEJO_OUTPUT"
echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT"
- uses: ./.forgejo/actions/update-aur-package
with:
package-name: ${{ env.PACKAGE_NAME }}
upstream-version: ${{ steps.versions.outputs.upstream }}
aur-version: ${{ steps.versions.outputs.aur }}
test-command: |
mkdir -p ~/.virtualenvs
fish -c 'vf install'
fish -c 'vf --help'
commit-message: bumped to version ${{ steps.versions.outputs.upstream }}
notify-message: ${{ env.PACKAGE_NAME }} updated from ${{ steps.versions.outputs.aur }} to ${{ steps.versions.outputs.upstream }}
aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }}
pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }}
yawsso:
runs-on: debian-stable
env:
PACKAGE_NAME: yawsso
container:
image: git.xengi.de/xengi/archlinux-aur:latest
credentials:
username: xengi
password: ${{ secrets.REGISTRY_TOKEN }}
steps:
- name: Checkout repository
run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE"
- name: Install dependencies
run: yay -Sy --needed --noconfirm --noprogressbar curl jq
- name: Get versions
id: versions
run: |
echo upstream=$(curl -fsSL "https://pypi.org/pypi/${PACKAGE_NAME#python-}/json" | jq -er '.info.version') >> "$FORGEJO_OUTPUT"
echo aur=$(curl -fsSL 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=${{ env.PACKAGE_NAME }}' | jq -er '.results[0].Version | split("-")[0]') >> "$FORGEJO_OUTPUT"
- uses: ./.forgejo/actions/update-aur-package
with:
package-name: ${{ env.PACKAGE_NAME }}
upstream-version: ${{ steps.versions.outputs.upstream }}
aur-version: ${{ steps.versions.outputs.aur }}
test-command: yawsso --help
commit-message: bumped to version ${{ steps.versions.outputs.upstream }}
notify-message: ${{ env.PACKAGE_NAME }} updated from ${{ steps.versions.outputs.aur }} to ${{ steps.versions.outputs.upstream }}
aur-ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
pushover-api-token: ${{ secrets.PUSHOVER_API_TOKEN }}
pushover-user-key: ${{ secrets.PUSHOVER_USER_KEY }}
update-readme:
runs-on: alpine-latest
steps:
- name: Install dependencies
run: apk add --upgrade --update-cache curl jq git
- name: Checkout repository
run: git clone "https://x-access-token:${FORGEJO_TOKEN}@${FORGEJO_SERVER_URL#https://}/${FORGEJO_REPOSITORY}.git" "$FORGEJO_WORKSPACE"
- name: Generate package table
run: |
packages=$(curl -fsSL 'https://aur.archlinux.org/rpc/v5/search/XenGi?by=maintainer' | jq -er '.results[].Name' | sort -f)
table=$(
echo '| Package | Version | Last modified | Popularity | Votes |'
echo '| --- | --- | --- | --- | --- |'
printf '%s\n' "$packages" | while IFS= read -r package; do
echo "| ${package} | ![AUR Version](https://img.shields.io/aur/version/${package}?style=flat-square) | ![AUR Last Modified](https://img.shields.io/aur/last-modified/${package}?style=flat-square) | ![AUR Popularity](https://img.shields.io/aur/popularity/${package}?style=flat-square) | ![AUR Votes](https://img.shields.io/aur/votes/${package}?style=flat-square) |"
done
)
awk -v table="$table" '
/<!-- AUR-PACKAGES-START -->/ {
print
print table
in_table = 1
next
}
/<!-- AUR-PACKAGES-END -->/ {
in_table = 0
print
next
}
!in_table {
print
}
' "README.md" > "README.md.new"
mv "README.md.new" "README.md"
- name: Commit updated README
run: |
git config user.name "forgejo-actions"
git config user.email "forgejo-actions@yuka"
git add README.md
if git diff --cached --quiet; then
echo "README.md has not changed"
exit 0
fi
git commit -m "Update AUR package list"
git push