Files
azy5030-overlay/.gitea/workflows/bump.yaml
T
azy5030 9fe57aee71
CI / build (push) Successful in 6m59s
ci: rename bump secret to BUMP_TOKEN
Gitea reserves the GITEA_ prefix for secret names, so the workflow secret
can't be GITEA_TOKEN. Rename it (and the env var the script reads) to
BUMP_TOKEN.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-20 20:51:48 -05:00

35 lines
1.1 KiB
YAML

name: Bump
on:
schedule:
- cron: '0 5 * * *'
workflow_dispatch: {}
jobs:
bump:
runs-on: ubuntu-latest
container:
image: gentoo/stage3:amd64-openrc
steps:
- name: Sync ::gentoo
run: emerge-webrsync
- name: Configure portage + install tooling
run: |
mkdir -p /etc/portage/repos.conf
printf '[DEFAULT]\nmain-repo = gentoo\n\n[gentoo]\nlocation = /var/db/repos/gentoo\n' \
> /etc/portage/repos.conf/gentoo.conf
sed -i 's/^verify-signature = true/verify-signature = false/' \
/etc/portage/binrepos.conf/gentoo.conf
emerge -q --getbinpkg \
dev-vcs/git net-misc/curl app-arch/xz-utils app-misc/jq \
dev-lang/go dev-util/pkgdev
- name: Check for new release and open PR
env:
BUMP_TOKEN: ${{ secrets.BUMP_TOKEN }}
run: |
host=${GITHUB_SERVER_URL#http://}; host=${host#https://}
curl -fsSL "http://x-access-token:${BUMP_TOKEN}@${host}/${GITHUB_REPOSITORY}/raw/branch/master/scripts/bump-version.sh" \
-o /tmp/bump-version.sh
bash /tmp/bump-version.sh