Rename Workflow to WorkflowEntrypoint #7008
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on https://www.neilmacy.co.uk/blog/github-action-to-block-merging | |
name: "Internal PR Required" | |
on: | |
workflow_call: | |
pull_request: | |
types: [labeled, unlabeled] | |
jobs: | |
InternalPRRequired: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check for label | |
if: contains(github.event.*.labels.*.name, 'needs-internal-pr') | |
run: | | |
echo "Pull request is labeled as 'needs-internal-pr'" | |
echo "This workflow fails so the pull request cannot be merged" | |
exit 1 |