From 71cbe8473fa71f284b8748fc85420339292b6c30 Mon Sep 17 00:00:00 2001 From: Peter Garrity Date: Tue, 11 Aug 2026 20:11:28 -0400 Subject: [PATCH] Fix debug flags defaulting to disabled on push-triggered runs GitHub Actions coerces null to 0 when compared against a boolean, so inputs.debugsources != false evaluated to false (not true) when inputs.debugsources was null on a push trigger, silently disabling --debugsources/--debugposters instead of preserving the old hardcoded behavior. Explicitly branch on github.event_name instead of relying on null/boolean coercion. --- .github/workflows/dev.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 4443e69..43df188 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -77,8 +77,8 @@ jobs: MASTODON_TOKEN: ${{ secrets.MASTODON_TEST_TOKEN }} SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} APP_ENV: dev - DEBUG_SOURCES: ${{ inputs.debugsources != false }} - DEBUG_POSTERS: ${{ inputs.debugposters != false }} + DEBUG_SOURCES: ${{ github.event_name != 'workflow_dispatch' || inputs.debugsources }} + DEBUG_POSTERS: ${{ github.event_name != 'workflow_dispatch' || inputs.debugposters }} run: | #In order to create posts on the test accounts remove the --debugposters debug flag FLAGS=""