workflows/merge-queue: run owners check job

This commit is contained in:
Wolfgang Walther
2025-11-11 18:47:35 +01:00
parent ec50d453b6
commit e18eeeb441
3 changed files with 17 additions and 2 deletions

View File

@@ -4,10 +4,10 @@ on:
workflow_call: workflow_call:
inputs: inputs:
baseBranch: baseBranch:
required: true required: false
type: string type: string
headBranch: headBranch:
required: true required: false
type: string type: string
mergedSha: mergedSha:
required: true required: true
@@ -27,6 +27,7 @@ defaults:
jobs: jobs:
commits: commits:
if: inputs.baseBranch && inputs.headBranch
permissions: permissions:
pull-requests: write pull-requests: write
runs-on: ubuntu-24.04-arm runs-on: ubuntu-24.04-arm

View File

@@ -56,6 +56,19 @@ jobs:
core.info(`targetSha: ${context.payload.merge_group?.base_sha ?? process.env.TARGET_SHA}`) core.info(`targetSha: ${context.payload.merge_group?.base_sha ?? process.env.TARGET_SHA}`)
core.setOutput('systems', require('./ci/supportedSystems.json')) core.setOutput('systems', require('./ci/supportedSystems.json'))
check:
name: Check
needs: [prepare]
uses: ./.github/workflows/check.yml
permissions:
# cherry-picks; formality right now, but unused
pull-requests: write
secrets:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
with:
mergedSha: ${{ needs.prepare.outputs.mergedSha }}
targetSha: ${{ needs.prepare.outputs.targetSha }}
lint: lint:
name: Lint name: Lint
needs: [prepare] needs: [prepare]

View File

@@ -82,6 +82,7 @@ jobs:
uses: ./.github/workflows/merge-group.yml uses: ./.github/workflows/merge-group.yml
# Those are actually only used on the merge_group event, but will throw an error if not set. # Those are actually only used on the merge_group event, but will throw an error if not set.
permissions: permissions:
pull-requests: write
statuses: write statuses: write
secrets: secrets:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}