mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
26 lines
647 B
YAML
26 lines
647 B
YAML
name: Test Workflows on PR Approval
|
|
|
|
on:
|
|
pull_request_review:
|
|
types: [submitted]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
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 }}
|
|
secrets: inherit
|