Commit Graph
5 Commits
Author SHA1 Message Date
Zakk 3b3edd4462 .github: use one naming and formatting style across workflows
Workflow names now match their file stems, so the Actions list and the
files read the same; generate-deps-relation-r1.yml becomes
deps-table.yml after the branch it maintains. Steps are lowercase and
verb-first, every step is named, and the autobump-rb checkout has one
name everywhere.

Also use 4-space step indentation, fromJSON, bare if: expressions,
github.actor for every ghcr login, uppercase env names, and the
GITHUB_REPOSITORY and GITHUB_REPOSITORY_OWNER variables the runner
already sets instead of REPO and OWNER copies. No behaviour changes.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-11 04:30:43 +11:00
Zakk 8900587f7b .github: narrow token scopes and fix silent CI failures
Jobs inherited write scopes they never use, so each workflow now
defaults to contents: read and grants pull-requests: read or
packages: write only to the jobs whose GITHUB_TOKEN calls need them.
The autobump bump job keeps its own block.

Failures that read as success now fail the step: a failed gh call in
nvchecker-check.py no longer reads as "no issue" and opens a duplicate,
and fleet-keeper no longer reports "found 0" when listing repositories
or workflows fails.

emerge-targets.sh took =cat/foo-bar-1.0 for a version of cat/foo, so a
PR touching both dropped cat/foo; only a digit after the dash starts a
version.

setup-gentoo added the x86-64 binhost on arm64 as well; it is now
added on amd64 only.

mirror-to-codeberg trusted whatever ssh-keyscan returned while holding
a write key; the host key is now pinned and checked.

stage3 cleanup ran even when build was skipped on a fork schedule.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-11 04:26:16 +11:00
Zakk 45a903afc7 .github: start the daily bump round from one workflow
stage3, nvchecker and autobump each had a schedule of their own, and
GitHub starts each 5-8 hours late, so their order shifted from day to
day. daily.yml is now the only schedule: it calls stage3, then
autobump-env on the fresh stage3, and nvchecker in parallel; autobump
runs when daily completes and autobump-wait after it, as before.

The steps are reusable workflows rather than a workflow_run chain,
because workflow_run stops after three levels and autobump-wait would
already be the fourth.

- daily runs at 00:17 UTC, so autobump-env carries the date the bumps
  run on and autobump starts without building its image.
- autobump drops its 11:00 schedule: autobump-wait already dispatches
  it again once the missing bundles are ready.
- stage3, autobump-env and nvchecker keep workflow_dispatch; nvchecker
  run by hand still starts autobump.

Codeberg mirroring no longer runs on every branch deletion: merged
autobump branches queued dozens of runs a day, and the next push or the
daily run prunes them anyway.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-11 03:27:38 +11:00
Zakk f977f4fc01 mirror-to-codeberg.yml: restrict when the mirror runs
因为 GitHub 不向 Dependabot 触发的运行提供仓库 secrets,`CODEBERG_SSH_KEY` 取到空值、推送必定失败,所以跳过
Dependabot 的运行。

因为这个 workflow 每次都 `git clone --mirror` 整个仓库并推送全部 ref,一次运行就已同步所有分支,所以 push 只在 master 和
tag 上触发。

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-08-01 21:40:20 +10:00
Zakk 2836738860 .github/workflows: add mirror to codeberg 2026-07-14 03:05:41 +10:00