Bump poetry-dynamic-versioning from 1.5.0 to 1.5.2 #121
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: Check for 'tests-failed' label | |
on: | |
pull_request_target: | |
types: | |
- labeled | |
- unlabeled | |
- review_requested | |
jobs: | |
check-label: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Fail if 'tests-failed' label is present | |
id: check_label | |
run: | | |
PR_NUMBER=${{ github.event.pull_request.number }} | |
LABELS=$(gh pr view $PR_NUMBER --json labels --jq '[.labels[].name] | join(",")') | |
if [[ $LABELS == *"tests-failed"* ]]; then | |
echo "Cannot merge PR with 'tests-failed' label." | |
exit 1 | |
fi | |
env: | |
GH_TOKEN: ${{ secrets.DNSBOT_TOKEN }} |