Remove Pipeline and Test Regression Rules & Fix Inaccuracies #23954
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
# Fail if the "Do Not Merge" label is present on a PR. | |
name: Merge label check | |
on: | |
pull_request: | |
types: | |
- opened | |
- labeled | |
- unlabeled | |
- synchronize | |
permissions: | |
contents: read | |
pull-requests: read | |
# Stop the current running job if a new push is made to the PR | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
new-check-for-merge-label: | |
if: github.ref != 'refs/heads/guacbot/translation-pipeline' | |
runs-on: ubuntu-latest | |
name: "Merge is not allowed when 'Do Not Merge' label is present" | |
steps: | |
- name: Verify lack of "Do Not Merge" label | |
env: | |
DO_NOT_MERGE_LABEL_IS_PRESENT: ${{ contains( github.event.pull_request.labels.*.name, 'Do Not Merge') }} | |
run: | | |
if [[ $DO_NOT_MERGE_LABEL_IS_PRESENT == "true" ]]; then | |
exit 1 | |
else | |
exit 0 | |
fi |