add steps to prevent and allow main merge during the release procedure #184
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: pr | |
on: | |
pull_request: | |
types: [synchronize, opened, reopened, labeled, unlabeled] | |
jobs: | |
label-do-not-merge: | |
runs-on: ubuntu-latest | |
steps: | |
- run: |- | |
if [ "${{ contains(join(github.event.pull_request.labels.*.name, ', '), 'do-not-merge') }}" = "true" ]; then | |
exit 1 | |
fi | |
exit 0 |