on: label: types: [created, deleted, edited] jobs: do-not-merge-check: name: 🚫🔒 Do Not Merge Check runs-on: ubuntu-latest steps: - name: 📖🔍 Checkout Repository Code uses: actions/checkout@v2 with: fetch-depth: 1 - name: 🔍🚫 Check for "Do Not Merge" Label run: | if [[ "${{ github.event.label.name }}" == "Do Not Merge" ]]; then echo "This PR has the 'Do Not Merge' label. Exiting." exit 1 fi