Update .forgejo/workflows/packages.yaml

Signed-off-by: xengi <forgejo@xengi.de>
This commit is contained in:
XenGi 2026-08-13 21:13:51 +02:00
commit b6aa400da3

View file

@ -7,6 +7,37 @@ on:
workflow_dispatch:
jobs:
c-lolcat:
runs-on: debian-stable
env:
PACKAGE_NAME: c-lolcat
container:
image: git.sb20.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 }}
go-aws-sso:
runs-on: debian-stable
env: