Files
azy5030-overlay/.gitea/workflows/bump.yaml
T
azy5030 57e0428658
CI / build (push) Successful in 5m50s
ci: create repos.conf dir before writing repo configs
A fresh gentoo/stage3 container has no /etc/portage/repos.conf directory, so
writing gentoo.conf failed. mkdir -p it first in both workflows and the bump
script.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-20 19:59:46 -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:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
run: |
host=${GITHUB_SERVER_URL#http://}; host=${host#https://}
curl -fsSL "http://x-access-token:${GITEA_TOKEN}@${host}/${GITHUB_REPOSITORY}/raw/branch/master/scripts/bump-version.sh" \
-o /tmp/bump-version.sh
bash /tmp/bump-version.sh