Monitor that the REQUIRED_PR_LABELS org variable is configured
Test / Test (push) Successful in 19s

This commit is contained in:
raucao committed 2026-12-04 16:18:36 +04:00
1 parent 92edfea936
commit a9d025a1f4
1 file changed
+11
+11
View File
@@ -12,6 +12,17 @@ jobs:
- uses: actions/checkout@v4
- name: Run check tests
run: bash test/run-tests.sh
# Monitor: the org-wide gate is fail-open, so alert if the org variable
# that configures it is ever empty.
- name: Org variable REQUIRED_PR_LABELS is configured
env:
REQUIRED_PR_LABELS: ${{ vars.REQUIRED_PR_LABELS }}
run: |
if [ -z "${REQUIRED_PR_LABELS}" ]; then
echo "::error::Org variable REQUIRED_PR_LABELS is empty; the required-labels gate is disabled."
exit 1
fi
echo "REQUIRED_PR_LABELS=${REQUIRED_PR_LABELS}"
# Verifies that the self: ref used by the scoped workflow resolves on the
# runner. Empty labels -> the check passes, which is all we need here.
- name: Verify action ref resolves