Skip to content

test(modules): implement first tests of this repo #4

test(modules): implement first tests of this repo

test(modules): implement first tests of this repo #4

Workflow file for this run

name: Check Pull Request Labels
on:
pull_request:
types: [opened, synchronize]
jobs:
check_labels:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check labels
run: |
labels=$(jq -r '.pull_request.labels[].name' "$GITHUB_EVENT_PATH")
echo "Labels: $labels"
if ! echo "$labels" | grep -qE "^testing-allowed$|^testing-ci-not-necessary$"; then
echo "ERROR: Pull request must have either 'testing-allowed' or 'testing-ci-not-necessary' label. Then push a new dummy commit."
exit 1
fi