From 66f6455d1b6b110780f80aa61fbaf78310423b70 Mon Sep 17 00:00:00 2001 From: Matti Airas Date: Thu, 13 Aug 2026 15:36:16 +0300 Subject: [PATCH] test: probe the event guard expression --- .github/workflows/guardprobe.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/guardprobe.yml diff --git a/.github/workflows/guardprobe.yml b/.github/workflows/guardprobe.yml new file mode 100644 index 0000000..c4bd7cf --- /dev/null +++ b/.github/workflows/guardprobe.yml @@ -0,0 +1,18 @@ +name: Guard Probe +on: + pull_request: + workflow_dispatch: +jobs: + probe: + runs-on: ubuntu-latest + steps: + - name: Refuse an event this gate cannot judge + if: >- + github.event_name != 'pull_request' + && github.event_name != 'push' + && github.event_name != 'workflow_dispatch' + run: | + echo "GUARD FIRED on ${{ github.event_name }}" >&2 + exit 1 + - name: Reached the real work + run: echo "guard did not fire on ${{ github.event_name }}"