Skip to content

Bump poetry-dynamic-versioning from 1.5.0 to 1.5.2 #121

Bump poetry-dynamic-versioning from 1.5.0 to 1.5.2

Bump poetry-dynamic-versioning from 1.5.0 to 1.5.2 #121

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 }}