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>
39 lines
958 B
YAML
39 lines
958 B
YAML
name: daily
|
|
|
|
# The one scheduled start of the bump round; autobump follows through workflow_run.
|
|
# Scheduled runs start 5-8 hours late here, still on the UTC day autobump-env is tagged with.
|
|
on:
|
|
schedule:
|
|
- cron: '17 0 * * *'
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: daily
|
|
cancel-in-progress: false
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
stage3:
|
|
if: github.repository == 'gentoo-zh/overlay' || github.event_name == 'workflow_dispatch'
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
uses: ./.github/workflows/stage3.yml
|
|
|
|
autobump-env:
|
|
needs: stage3
|
|
if: ${{ !cancelled() && needs.stage3.result != 'skipped' }}
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
uses: ./.github/workflows/autobump-env.yml
|
|
with:
|
|
force: true
|
|
|
|
nvchecker:
|
|
if: github.repository == 'gentoo-zh/overlay' || github.event_name == 'workflow_dispatch'
|
|
uses: ./.github/workflows/nvchecker.yml
|
|
secrets: inherit
|