Skip to content

Add twc test (with intentional fail) #16

Add twc test (with intentional fail)

Add twc test (with intentional fail) #16

name: Add pr-pull label to merge
on:
# pull_request:
# paths:
# - 'Formula/**'
pull_request:
types:
- labeled
- unlabeled
- opened
- synchronize
- reopened
jobs:
check-for-label:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
# unclear why `github.event_name == 'pull_request' &&` is required but it is
- run: exit 0
if: github.event_name == 'pull_request' && contains( github.event.pull_request.labels.*.name, 'pr-pull' )
- run: exit 1
if: github.event_name == 'pull_request' && !contains( github.event.pull_request.labels.*.name, 'pr-pull' )