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>
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: autobump-wait
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: [autobump]
|
|
types: [completed]
|
|
workflow_dispatch:
|
|
inputs:
|
|
run_id:
|
|
description: 'autobump run whose missing bundles to wait for'
|
|
required: true
|
|
type: string
|
|
|
|
concurrency:
|
|
group: autobump-wait-${{ github.event.workflow_run.id || inputs.run_id }}
|
|
cancel-in-progress: false
|
|
|
|
permissions:
|
|
actions: write
|
|
contents: read
|
|
issues: read
|
|
|
|
jobs:
|
|
wait:
|
|
if: github.repository == 'gentoo-zh/overlay' || github.event_name == 'workflow_dispatch'
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 200
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v7
|
|
|
|
- name: checkout autobump-rb
|
|
uses: actions/checkout@v7
|
|
with:
|
|
repository: gentoo-zh/autobump-rb
|
|
path: autobump-rb
|
|
|
|
- name: wait for the missing bundles
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
GH_TOKEN_GENTOO_ZH: ${{ github.token }}
|
|
GH_TOKEN_GENTOO_ZH_DRAFTS: ${{ github.token }}
|
|
RUN_ID: ${{ github.event.workflow_run.id || inputs.run_id }}
|
|
run: |
|
|
case "$RUN_ID" in ''|*[!0-9]*) echo "run_id must be a number: $RUN_ID" >&2; exit 1;; esac
|
|
python3 autobump-rb/bin/wait.py --repo "$GITHUB_REPOSITORY" --run-id "$RUN_ID" --overlay .
|