chore(github-action): tests should be executed on fork when approved by the team #2775
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
name: Pull Request Milestone Validation | |
on: | |
pull_request: | |
branches: | |
- main | |
types: | |
- labeled | |
- unlabeled | |
- opened | |
- reopened | |
- synchronize | |
- edited | |
- milestoned | |
- demilestoned | |
env: | |
LABELS: ${{ join( github.event.pull_request.labels.*.name, ' ' ) }} | |
jobs: | |
check-milestone: | |
name: PR has a Milestone or the [no milestone] label | |
runs-on: ubuntu-latest | |
steps: | |
- if: github.event.pull_request.milestone == null && contains( env.LABELS, 'no milestone' ) == false | |
run: exit 1 |