Files
gentoo-zh/.github/workflows/autobump-trial.yml
T
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

86 lines
2.0 KiB
YAML

name: autobump-trial
on:
workflow_dispatch:
inputs:
targets:
description: 'nvchecker issue numbers, space separated'
required: true
concurrency:
group: autobump-trial
cancel-in-progress: false
permissions:
contents: read
issues: write
packages: read
jobs:
env:
permissions:
contents: read
packages: write
uses: ./.github/workflows/autobump-env.yml
trial:
needs: env
runs-on: ubuntu-latest
timeout-minutes: 150
container:
image: ${{ needs.env.outputs.image }}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
options: --privileged
steps:
- name: sync gentoo main tree
run: emerge-webrsync --no-pgp-verify
- name: tune portage for this runner
run: echo "MAKEOPTS=\"\${MAKEOPTS} -j$(nproc)\"" >> /etc/portage/make.conf
- name: set git identity
run: |
git config --global user.name "gentoo-zh-bot"
git config --global user.email "bot@gentoozh.org"
- name: checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: checkout autobump-rb
uses: actions/checkout@v7
with:
repository: gentoo-zh/autobump-rb
path: autobump-rb
- name: register overlay
run: |
mkdir -p /etc/portage/repos.conf
cat > /etc/portage/repos.conf/gentoo.conf << EOF
[DEFAULT]
main-repo = gentoo
[gentoo]
location = $(portageq get_repo_path / gentoo)
EOF
cat > /etc/portage/repos.conf/repo.conf << EOF
[$(cat profiles/repo_name)]
location = $(realpath .)
priority = 0
EOF
- name: build-trial each target
env:
GH_TOKEN: ${{ github.token }}
AUTOBUMP_SYNC_REMOTE: origin
AUTOBUMP_UPSTREAM_REPO: gentoo-zh/overlay
AUTOBUMP_OP_TIMEOUT: '2700'
GH_TOKEN_GENTOO_ZH: ${{ github.token }}
GH_TOKEN_GENTOO_ZH_DRAFTS: ${{ github.token }}
TARGETS: ${{ inputs.targets }}
run: scripts/autobump-trial.sh