Generate one workflow with all jobs

This commit is contained in:
Michael B. Gale
2026-10-07 12:17:20 +01:00
parent 9c778fc3db
commit f58ab6643b
3 changed files with 81 additions and 7 deletions

34
.github/workflows/__pr.yml generated vendored Normal file
View File

@@ -0,0 +1,34 @@
# Warning: This file is generated automatically, and should not be modified.
# Instead, please modify the template in the pr-checks directory and run:
# pr-checks/sync.sh
# to regenerate this file.
name: PR Checks
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GO111MODULE: auto
on:
push:
branches:
- main
- releases/v*
pull_request: {}
merge_group:
types:
- checks_requested
schedule:
- cron: '0 5 * * *'
workflow_dispatch:
inputs: {}
workflow_call:
inputs: {}
defaults:
run:
shell: bash
jobs:
pr-checks:
name: Initial checks
permissions:
contents: read
security-events: read
uses: ./.github/workflows/pr-checks.yml

View File

@@ -2,13 +2,11 @@ name: PR Checks
on:
push:
pull_request:
merge_group:
types: [checks_requested]
workflow_dispatch:
workflow_call:
concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || false }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_call' }}
group: ${{ github.workflow }}-${{ github.ref }}
defaults: