ci: Implement reusable workflow for PR job eligibility checks (no-changelog) (#15631)

This commit is contained in:
shortstacked
2025-05-30 10:50:40 +01:00
committed by GitHub
parent e704077864
commit 7dc94b61cb
3 changed files with 169 additions and 62 deletions

View File

@@ -6,12 +6,19 @@ on:
permissions:
contents: read
pull-requests: read
jobs:
run_workflow_tests_after_approval:
name: Run Tests on Approved PR
eligibility_check:
name: Check Eligibility for Test Run
if: github.event.review.state == 'approved'
uses: ./.github/workflows/check-run-eligibility.yml
with:
is_pr_approved_by_maintainer: true
run_workflow_tests:
name: Run Tests on Approved Internal PR
needs: [eligibility_check]
if: needs.eligibility_check.outputs.should_run == 'true'
uses: ./.github/workflows/test-workflows-callable.yml
with:
git_ref: ${{ github.event.pull_request.head.sha }}