Compare commits

...
Author SHA1 Message Date
gitea-actions 07677bd6da dev-util/gitea-runner: bump to 6.0.0
Vendor tags / repoint (push) Successful in 8s
CI / lint (push) Successful in 21s
CI / build (push) Skipped
2026-11-17 23:35:03 -06:00
gitea-actions 04eeb54baf dev-util/gitea-runner: bump to 5.4.1
Vendor tags / repoint (push) Successful in 11s
CI / lint (push) Successful in 27s
CI / build (push) Successful in 6m45s
2026-11-17 23:34:16 -06:00
gitea-actions 9caef615d2 dev-util/gitea-runner: bump to 5.3.0
Vendor tags / repoint (push) Successful in 9s
CI / lint (push) Successful in 25s
CI / build (push) Successful in 6m50s
2026-11-17 23:33:28 -06:00
gitea-actions bac6aa1a8a dev-util/gitea-runner: bump to 5.2.4
Vendor tags / repoint (push) Successful in 7s
CI / lint (push) Successful in 22s
CI / build (push) Successful in 6m44s
2026-11-17 23:32:40 -06:00
gitea-actions b9770c6b1f dev-util/gitea-runner: bump to 5.2.3
Vendor tags / repoint (push) Successful in 7s
CI / lint (push) Successful in 19s
CI / build (push) Successful in 6m12s
2026-11-17 23:32:04 -06:00
gitea-actions aa6e98669f dev-util/gitea-runner: bump to 5.2.2
Vendor tags / repoint (push) Successful in 10s
CI / lint (push) Successful in 29s
CI / build (push) Successful in 4m52s
2026-11-17 23:31:19 -06:00
gitea-actions beeff2123a dev-util/gitea-runner: bump to 5.2.0
CI / lint (push) Successful in 22s
Vendor tags / repoint (push) Successful in 7s
CI / build (push) Successful in 6m17s
2026-11-17 23:30:29 -06:00
gitea-actions 138804a361 dev-util/gitea-runner: bump to 5.1.1
Vendor tags / repoint (push) Successful in 9s
CI / lint (push) Successful in 22s
CI / build (push) Successful in 6m18s
2026-11-17 23:28:25 -06:00
gitea-actions e36eb9e31d dev-util/gitea-runner: bump to 5.1.0
Vendor tags / repoint (push) Successful in 6s
CI / lint (push) Successful in 17s
CI / build (push) Successful in 5m55s
2026-10-15 05:06:17 +00:00
azy5030andgitea-actions bf4c038e59 dev-util/gitea-runner: bump to 5.0.0 (#30)
Vendor tags / repoint (push) Successful in 5s
CI / lint (push) Successful in 18s
CI / build (push) Skipped
Automated bump of `dev-util/gitea-runner` from 4.1.0 to 5.0.0.

- Upstream release: https://gitea.com/gitea/runner/releases/tag/v5.0.0
- Vendor tarball: https://git.azy.dev/azy5030/azy5030-overlay/releases/tag/gitea-runner-5.0.0-vendor

Review checklist:
- [ ] LICENSE still covers all vendored module licenses (`go-licenses report ./...`)
- [ ] BDEPEND Go version matches upstream go.mod (set to >=1.27)
- [ ] version ldflags path `internal/pkg/ver.version` unchanged upstream
- [ ] CI (pkgcheck + emerge + `gitea-runner --version`) is green on this PR

---------

Co-authored-by: gitea-actions <actions@azy.dev>
Reviewed-on: #30
2026-10-09 00:19:10 -05:00
gitea-actions 8f7423de1b dev-util/gitea-runner: bump to 4.1.0
Vendor tags / repoint (push) Successful in 7s
CI / lint (push) Successful in 20s
CI / build (push) Successful in 6m9s
2026-10-07 22:59:10 -05:00
azy5030andgitea-actions 91f70ad5ef dev-util/gitea-runner: bump to 4.0.1 (#27)
CI / lint (push) Successful in 21s
Vendor tags / repoint (push) Successful in 7s
CI / build (push) Successful in 6m13s
Automated bump of `dev-util/gitea-runner` from 3.5.0 to 4.0.1.

- Upstream release: https://gitea.com/gitea/runner/releases/tag/v4.0.1
- Vendor tarball: https://git.azy.dev/azy5030/azy5030-overlay/releases/tag/gitea-runner-4.0.1-vendor

Review checklist:
- [ ] LICENSE still covers all vendored module licenses (`go-licenses report ./...`)
- [ ] BDEPEND Go version matches upstream go.mod (set to >=1.27)
- [ ] version ldflags path `internal/pkg/ver.version` unchanged upstream
- [ ] CI (pkgcheck + emerge + `gitea-runner --version`) is green on this PR

---------

Co-authored-by: gitea-actions <actions@azy.dev>
Reviewed-on: #27
Co-authored-by: Ali <azy5030@gmail.com>
Co-committed-by: Ali <azy5030@gmail.com>
2026-10-07 22:58:10 -05:00
azy5030andClaude Fable 5.1 a69de1d212 ci: drop dev-lang/go ~amd64 override now that go 1.27 is stable
CI / lint (push) Successful in 20s
CI / build (push) Successful in 7m32s
Go 1.27 (>=dev-lang/go-1.27, the ebuild's BDEPEND) is now keyworded
stable on amd64 and available as a binpkg, so CI and the bump workflow
no longer need to accept the testing keyword (and compile Go from
source). Reverts the accept_keywords additions from 17e1bfa.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-07 22:47:31 -05:00
gitea-actions 9d56e48685 dev-util/gitea-runner: bump to 4.0.0
Vendor tags / repoint (push) Successful in 6s
CI / lint (push) Successful in 20s
CI / build (push) Successful in 6m10s
2026-09-25 05:10:43 +00:00
gitea-actions 6a4a02183f dev-util/gitea-runner: bump to 3.5.0
Vendor tags / repoint (push) Successful in 9s
CI / lint (push) Successful in 42s
CI / build (push) Successful in 12m26s
2026-09-21 02:37:24 +00:00
gitea-actions 1ded43b25e dev-util/gitea-runner: bump to 3.4.2
Vendor tags / repoint (push) Successful in 9s
CI / lint (push) Successful in 53s
CI / build (push) Successful in 12m23s
2026-09-21 02:08:36 +00:00
gitea-actions f4c40dd107 dev-util/gitea-runner: bump to 3.4.1
Vendor tags / repoint (push) Successful in 8s
CI / lint (push) Successful in 1m26s
CI / build (push) Successful in 11m28s
2026-09-21 01:43:35 +00:00
gitea-actions 9247f13991 dev-util/gitea-runner: bump to 3.4.0
Vendor tags / repoint (push) Successful in 9s
CI / lint (push) Successful in 1m55s
CI / build (push) Successful in 12m50s
2026-09-21 01:15:44 +00:00
gitea-actions 02fb5f1012 dev-util/gitea-runner: bump to 3.3.2
Vendor tags / repoint (push) Successful in 9s
CI / lint (push) Successful in 55s
CI / build (push) Successful in 11m59s
2026-09-21 00:50:25 +00:00
azy5030andClaude Fable 5.1 c9a31ba468 ci: only run on branch pushes; drop bump-script emerge; repoint vendor tags
CI / lint (push) Successful in 58s
CI / build (push) Successful in 11m54s
- ci.yaml: filter the push trigger to branches. An unfiltered `push` also
  fired for every tag ref, including the vendor-release tags the bump script
  creates via the API.
- bump-version.sh: remove the pkgcheck/emerge/--version validation before
  push. The branch push triggers CI, which runs the same checks and, unlike
  the script's local copy, fetches the real release asset. The PR body now
  asks for green CI instead of claiming the build passed in the bump job.
- vendor-tags.yaml: new workflow on pushes to master touching dev-util/**.
  The vendor release is created before the bump commit exists (and PRs are
  squash-merged), so its tag pointed at an arbitrary master commit. This
  force-updates each vendor tag whose ebuild is in the tree to the master
  commit that added that ebuild. Tags are only ever updated, never deleted,
  since deleting a release's tag deletes the release and its assets.
- CLAUDE.md: document both changes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-20 19:25:33 -05:00
gitea-actions 4a3dc17dc9 dev-util/gitea-runner: bump to 3.3.1
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled
2026-09-21 00:05:06 +00:00
azy5030 17e1bfae50 fix bump/ci actions to support new gitea runner
CI / lint (push) Successful in 1m26s
CI / build (push) Successful in 12m13s
2026-09-20 17:08:11 -05:00
gitea-actions aa4707da6a dev-util/gitea-runner: bump to 3.3.0
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled
2026-09-20 16:32:40 -05:00
gitea-actions d8714c8917 dev-util/gitea-runner: bump to 3.2.0
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled
2026-09-20 16:32:19 -05:00
gitea-actions 8344a203c2 dev-util/gitea-runner: bump to 3.1.0
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled
2026-09-20 16:30:41 -05:00
azy5030andgitea-actions 4f092a980f dev-util/gitea-runner: bump to 3.0.2 (#13)
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled
Automated bump of `dev-util/gitea-runner` from 3.0.1 to 3.0.2.

- Upstream release: https://gitea.com/gitea/runner/releases/tag/v3.0.2
- Vendor tarball: https://git.azy.dev/azy5030/azy5030-overlay/releases/tag/gitea-runner-3.0.2-vendor

Review checklist:
- [ ] LICENSE still covers all vendored module licenses (`go-licenses report ./...`)
- [ ] BDEPEND Go version matches upstream go.mod (set to >=1.26.0)
- [ ] version ldflags path `internal/pkg/ver.version` unchanged upstream

CI build + `gitea-runner --version` passed in this workflow.

---------

Co-authored-by: gitea-actions <actions@azy.dev>
Reviewed-on: #13
2026-09-20 16:28:57 -05:00
7 changed files with 115 additions and 23 deletions
+16 -1
View File
@@ -2,7 +2,14 @@ name: Bump
on: on:
schedule: schedule:
- cron: '0 5 * * *' - cron: '0 5 * * *'
workflow_dispatch: {} workflow_dispatch:
inputs:
version:
description: >-
Upstream gitea/runner version to bump to (e.g. 3.4.0, no leading
"v"). Leave empty to use the latest upstream release.
required: false
type: string
jobs: jobs:
bump: bump:
@@ -19,7 +26,14 @@ jobs:
id: check id: check
env: env:
BUMP_TOKEN: ${{ secrets.BUMP_TOKEN }} BUMP_TOKEN: ${{ secrets.BUMP_TOKEN }}
BUMP_VERSION: ${{ inputs.version }}
run: | run: |
# An explicitly requested version always runs the full bump.
if [ -n "${BUMP_VERSION}" ]; then
echo "needed=true" >> "$GITHUB_OUTPUT"
echo "explicit version requested: ${BUMP_VERSION}"
exit 0
fi
latest=$(wget -qO- https://gitea.com/gitea/runner/releases.rss \ latest=$(wget -qO- https://gitea.com/gitea/runner/releases.rss \
| grep -oE '<title>v[0-9]+\.[0-9]+\.[0-9]+</title>' \ | grep -oE '<title>v[0-9]+\.[0-9]+\.[0-9]+</title>' \
| head -1 | sed -E 's#</?title>##g; s/^v//') | head -1 | sed -E 's#</?title>##g; s/^v//')
@@ -59,6 +73,7 @@ jobs:
if: steps.check.outputs.needed == 'true' if: steps.check.outputs.needed == 'true'
env: env:
BUMP_TOKEN: ${{ secrets.BUMP_TOKEN }} BUMP_TOKEN: ${{ secrets.BUMP_TOKEN }}
BUMP_VERSION: ${{ inputs.version }}
run: | run: |
host=${GITHUB_SERVER_URL#http://}; host=${host#https://} 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" \ curl -fsSL "http://x-access-token:${BUMP_TOKEN}@${host}/${GITHUB_REPOSITORY}/raw/branch/master/scripts/bump-version.sh" \
+6 -1
View File
@@ -1,5 +1,10 @@
name: CI name: CI
on: [push] # Restrict to branch pushes: an unfiltered `push` also fires for tag refs,
# including the vendor-release tags the bump script creates via the API.
on:
push:
branches:
- '**'
jobs: jobs:
# Lint gate: runs on the plain Docker-backend runner (not the Gentoo # Lint gate: runs on the plain Docker-backend runner (not the Gentoo
+43
View File
@@ -0,0 +1,43 @@
name: Vendor tags
# The bump script creates the `${PN}-${ver}-vendor` release (which hosts the
# vendor tarball) *before* the bump commit exists, so its tag can only point at
# whatever master was at the time. The PR is then squash/rebase-merged, so the
# branch commit never lands on master either. This job re-points each vendor
# tag at the master commit that introduced that version's ebuild. It is
# idempotent: a tag already on the right commit is left alone.
#
# Only ever force-*update* a tag here. Deleting a release's tag makes Gitea
# delete the release and its assets, which would break the ebuild's SRC_URI.
on:
push:
branches:
- master
paths:
- 'dev-util/**'
jobs:
repoint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Point vendor tags at their bump commits
run: |
set -euo pipefail
git fetch --tags --force origin
for ebuild in dev-util/gitea-runner/gitea-runner-*.ebuild; do
ver=${ebuild##*/gitea-runner-}; ver=${ver%.ebuild}
tag="gitea-runner-${ver}-vendor"
if ! cur=$(git rev-parse --verify -q "refs/tags/${tag}^{commit}"); then
echo "${tag}: no such tag, skipping"; continue
fi
# git mv shows up as an addition of the new path (no --follow).
target=$(git log --diff-filter=A --format=%H -1 -- "$ebuild")
if [ "$cur" = "$target" ]; then
echo "${tag}: already at ${target}"; continue
fi
echo "${tag}: ${cur} -> ${target}"
git push --force origin "${target}:refs/tags/${tag}"
done
+14 -2
View File
@@ -52,8 +52,9 @@ re-uploaded as a release asset, or the build will fail Manifest verification. Th
4. `git mv`s the ebuild to the new version, rewrites `BDEPEND`'s Go version from 4. `git mv`s the ebuild to the new version, rewrites `BDEPEND`'s Go version from
upstream `go.mod`, and regenerates the Manifest with `pkgdev manifest` (after copying upstream `go.mod`, and regenerates the Manifest with `pkgdev manifest` (after copying
both distfiles into `/var/cache/distfiles` and wiring a temporary `repos.conf`). both distfiles into `/var/cache/distfiles` and wiring a temporary `repos.conf`).
5. Validates: `pkgcheck scan`, then `emerge` + `gitea-runner --version | grep v${ver}`. 5. Commits, pushes the branch, opens a PR against `master`. The script does **not**
6. Commits, pushes the branch, opens a PR against `master`. emerge or pkgcheck the result itself: the branch push triggers CI, which does both
(and fetches the real release asset, which the script's local copy never would).
Requires a `BUMP_TOKEN` repo secret (scopes: repository read/write, write release) plus Requires a `BUMP_TOKEN` repo secret (scopes: repository read/write, write release) plus
a Gentoo env with `go pkgdev git curl xz jq`. a Gentoo env with `go pkgdev git curl xz jq`.
@@ -74,6 +75,17 @@ runner executes JS actions by `docker exec node …` *inside* the job container,
`gentoo/stage3` ships no node, so any JS action fails with exit 127. The lint job has no `gentoo/stage3` ships no node, so any JS action fails with exit 127. The lint job has no
`container:`, so it runs in the runner's default node-capable image and checkout works. `container:`, so it runs in the runner's default node-capable image and checkout works.
## Vendor-tag repointing (`.gitea/workflows/vendor-tags.yaml`)
The bump script creates the `${PN}-${ver}-vendor` release before the bump commit
exists, so its tag points at whatever `master` was at the time (and squash/rebase
merges mean the branch commit never lands on `master` anyway). On every push to
`master` touching `dev-util/**`, this workflow force-updates each vendor tag whose
ebuild is still in the tree to the `master` commit that added that ebuild. It only
ever *updates* tags: deleting a release's tag makes Gitea delete the release and its
assets, breaking the ebuild's `SRC_URI`. Tag pushes don't re-trigger CI because
`ci.yaml` is filtered to branch pushes.
## Conventions / gotchas ## Conventions / gotchas
- **YAML** is linted by `.yamllint.yaml` (relaxed: line-length and document-start - **YAML** is linted by `.yamllint.yaml` (relaxed: line-length and document-start
+2 -2
View File
@@ -1,2 +1,2 @@
DIST gitea-runner-3.0.1-vendor.tar.xz 3210020 BLAKE2B cb2ed2937b9eff439978be0edb77d74c7c5cf8876719372b867ccf728e656f09b9036f00bbd92d5b416b7bc5da6a1e3783584bb007696516acaaa6bba8b918d6 SHA512 8c281985195c48408ee2a5d91ae6ecbd9a3da9d02df253c810fc96fa3437a7604c6c70b5fd793bd62d587214eb3c82fdf0d38d3c8f71761aec3099b029f4d6aa DIST gitea-runner-6.0.0-vendor.tar.xz 2129768 BLAKE2B 7f4f693d998dacc27098fee4932b1dc6034e8c949083dc2059d18e229691a492182863f5af575fc8a9ef957db250800113bf2ff37ba4404e44c05c4deead106e SHA512 583ed2e45eb57ba676881a6255b791d193107ff1576a4ed786111e7a44706578ce8efad149be7a9b35c8135743f5841d54e1e8b8af80f22224a6605908b21f34
DIST gitea-runner-3.0.1.tar.gz 472208 BLAKE2B 74a3d070e44b0fc6a38479fb2e342cdd1769dd774d4512fa661d44a86e84f3a58886b3db97a72379a8bf9cd6d2db60241a296c609a91aae50f1b231db63968a4 SHA512 d254c9fef038952d715c31594744a482cfd25c23deed3591436ddd383dc1693987bed6963e16790576e4df1ab27c4f8fd80c2bab1b9c169dc34427c15e907d12 DIST gitea-runner-6.0.0.tar.gz 640955 BLAKE2B 19d23bb33ea8586ef155675386a0f59e85a77a5285fe4a49ee7db2222dfcc48a24afe0c4697bd2e56046dc4b0540385a1dc77f83cc780b3b10607aad30206e7a SHA512 86c5b9787ada0f1a8cc5c04ef5ef2781cd7381518337b666270c6005fdfc8fc1f8ee139d6f5ac609471e75e1d71c0f8612fce2ab2b21f6f28394b222012152d1
@@ -19,7 +19,7 @@ LICENSE="MIT Apache-2.0 BSD BSD-2 ISC MPL-2.0"
SLOT="0" SLOT="0"
KEYWORDS="~amd64" KEYWORDS="~amd64"
BDEPEND=">=dev-lang/go-1.26.0" BDEPEND=">=dev-lang/go-1.27"
# The runner shells out to the docker client for the Docker backend. # The runner shells out to the docker client for the Docker backend.
RDEPEND="app-containers/docker-cli" RDEPEND="app-containers/docker-cli"
+33 -16
View File
@@ -6,12 +6,17 @@
# Expects a Gentoo environment with: go, pkgdev, git, curl, xz, jq. # Expects a Gentoo environment with: go, pkgdev, git, curl, xz, jq.
# Required env: BUMP_TOKEN, GITHUB_SERVER_URL, GITHUB_REPOSITORY. # Required env: BUMP_TOKEN, GITHUB_SERVER_URL, GITHUB_REPOSITORY.
# Optional env: GITHUB_API_URL (defaults to ${GITHUB_SERVER_URL}/api/v1). # Optional env: GITHUB_API_URL (defaults to ${GITHUB_SERVER_URL}/api/v1).
# BUMP_VERSION target a specific upstream version (X.Y.Z, no
# leading "v") instead of the latest release. An
# explicit target may be older than the current
# ebuild (useful to back out of a broken release).
set -euo pipefail set -euo pipefail
PN="gitea-runner" PN="gitea-runner"
UPSTREAM_RSS="https://gitea.com/gitea/runner/releases.rss" UPSTREAM_RSS="https://gitea.com/gitea/runner/releases.rss"
UPSTREAM_ARCHIVE="https://gitea.com/api/v1/repos/gitea/runner/archive" UPSTREAM_ARCHIVE="https://gitea.com/api/v1/repos/gitea/runner/archive"
UPSTREAM_GOMOD="https://gitea.com/api/v1/repos/gitea/runner/raw/go.mod" UPSTREAM_GOMOD="https://gitea.com/api/v1/repos/gitea/runner/raw/go.mod"
UPSTREAM_TAGS="https://gitea.com/api/v1/repos/gitea/runner/tags"
: "${BUMP_TOKEN:?BUMP_TOKEN is required}" : "${BUMP_TOKEN:?BUMP_TOKEN is required}"
: "${GITHUB_SERVER_URL:?GITHUB_SERVER_URL is required}" : "${GITHUB_SERVER_URL:?GITHUB_SERVER_URL is required}"
@@ -25,10 +30,22 @@ host="${GITHUB_SERVER_URL#*://}"
api() { curl -fsSL -H "Authorization: token ${BUMP_TOKEN}" "$@"; } api() { curl -fsSL -H "Authorization: token ${BUMP_TOKEN}" "$@"; }
# --- determine versions ------------------------------------------------------ # --- determine versions ------------------------------------------------------
latest=$(curl -fsSL "$UPSTREAM_RSS" \ if [ -n "${BUMP_VERSION:-}" ]; then
| grep -oE '<title>v[0-9]+\.[0-9]+\.[0-9]+</title>' \ latest="${BUMP_VERSION#v}"
| head -1 | sed -E 's#</?title>##g; s/^v//') echo "$latest" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+$' \
[ -n "$latest" ] || { echo "could not parse upstream version"; exit 1; } || { echo "BUMP_VERSION must look like X.Y.Z (got '${BUMP_VERSION}')"; exit 1; }
# Fail fast if the tag doesn't exist upstream, before cloning anything.
# (The raw endpoint silently falls back to the default branch for an
# unknown ref, so ask the tags API, which 404s.)
curl -fsSL "${UPSTREAM_TAGS}/v${latest}" -o /dev/null \
|| { echo "upstream tag v${latest} not found"; exit 1; }
echo "targeting explicit version ${latest}"
else
latest=$(curl -fsSL "$UPSTREAM_RSS" \
| grep -oE '<title>v[0-9]+\.[0-9]+\.[0-9]+</title>' \
| head -1 | sed -E 's#</?title>##g; s/^v//')
[ -n "$latest" ] || { echo "could not parse upstream version"; exit 1; }
fi
WORK=$(mktemp -d) WORK=$(mktemp -d)
git clone "${scheme}://x-access-token:${BUMP_TOKEN}@${host}/${GITHUB_REPOSITORY}.git" "$WORK" git clone "${scheme}://x-access-token:${BUMP_TOKEN}@${host}/${GITHUB_REPOSITORY}.git" "$WORK"
@@ -39,11 +56,15 @@ current=$(find "$pkgdir" -name "${PN}-*.ebuild" \
| sed -E "s#.*/${PN}-(.*)\.ebuild#\1#" | sort -V | tail -1) | sed -E "s#.*/${PN}-(.*)\.ebuild#\1#" | sort -V | tail -1)
echo "upstream=${latest} current=${current}" echo "upstream=${latest} current=${current}"
[ "$latest" != "$current" ] || { echo "already at ${latest}"; exit 0; }
newest=$(printf '%s\n%s\n' "$current" "$latest" | sort -V | tail -1) newest=$(printf '%s\n%s\n' "$current" "$latest" | sort -V | tail -1)
if [ "$newest" = "$current" ] && [ "$latest" != "$current" ]; then if [ "$newest" = "$current" ]; then
echo "current ($current) is newer than upstream ($latest); nothing to do"; exit 0 if [ -n "${BUMP_VERSION:-}" ]; then
echo "warning: explicit target ${latest} is older than current ${current}; downgrading"
else
echo "current ($current) is newer than upstream ($latest); nothing to do"; exit 0
fi
fi fi
[ "$latest" != "$current" ] || { echo "already at latest ($current)"; exit 0; }
branch="bump/${PN}-${latest}" branch="bump/${PN}-${latest}"
if api "${API}/repos/${GITHUB_REPOSITORY}/branches/${branch}" >/dev/null 2>&1; then if api "${API}/repos/${GITHUB_REPOSITORY}/branches/${branch}" >/dev/null 2>&1; then
@@ -99,13 +120,10 @@ printf '[azy5030]\nlocation = %s\nmasters = gentoo\nauto-sync = false\n' "$WORK"
> /etc/portage/repos.conf/azy5030.conf > /etc/portage/repos.conf/azy5030.conf
( cd "${pkgdir}" && pkgdev manifest ) ( cd "${pkgdir}" && pkgdev manifest )
# --- validate, commit, push, open PR ---------------------------------------- # --- commit, push, open PR ---------------------------------------------------
pkgcheck scan --repo "$WORK" "${pkgdir}" || true # No emerge/pkgcheck here: pushing the branch triggers CI, which runs pkgcheck,
mkdir -p /etc/portage/package.accept_keywords # builds the package from the Manifest (fetching the real release asset) and
echo 'dev-util/gitea-runner ~amd64' > /etc/portage/package.accept_keywords/gitea-runner # asserts `gitea-runner --version`. A broken release shows up as a red PR.
emerge -v --getbinpkg "=dev-util/${PN}-${latest}"
gitea-runner --version | grep -q "v${latest}"
git add -A git add -A
git commit -m "dev-util/${PN}: bump to ${latest}" git commit -m "dev-util/${PN}: bump to ${latest}"
git push origin "$branch" git push origin "$branch"
@@ -120,8 +138,7 @@ Review checklist:
- [ ] LICENSE still covers all vendored module licenses (\`go-licenses report ./...\`) - [ ] LICENSE still covers all vendored module licenses (\`go-licenses report ./...\`)
- [ ] BDEPEND Go version matches upstream go.mod (set to >=${goreq:-unchanged}) - [ ] BDEPEND Go version matches upstream go.mod (set to >=${goreq:-unchanged})
- [ ] version ldflags path \`internal/pkg/ver.version\` unchanged upstream - [ ] version ldflags path \`internal/pkg/ver.version\` unchanged upstream
- [ ] CI (pkgcheck + emerge + \`gitea-runner --version\`) is green on this PR
CI build + \`gitea-runner --version\` passed in this workflow.
EOF EOF
) )
api -X POST -H 'Content-Type: application/json' \ api -X POST -H 'Content-Type: application/json' \