Skip to content

Fix debug flags defaulting to disabled on push-triggered runs - #164

Open
flufflycthu1u wants to merge 1 commit into
masterfrom
fix/debug-flags-push-default
Open

Fix debug flags defaulting to disabled on push-triggered runs#164
flufflycthu1u wants to merge 1 commit into
masterfrom
fix/debug-flags-push-default

Conversation

@flufflycthu1u

@flufflycthu1u flufflycthu1u commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • PR feat: make debug flags configurable via workflow_dispatch inputs #151 added workflow_dispatch inputs for debugsources/debugposters and set DEBUG_SOURCES/DEBUG_POSTERS env vars via inputs.debugsources != false, assuming undefined != false is true on push-triggered runs (no inputs context).
  • GitHub Actions expressions coerce mismatched types to numbers for comparison: null0, false0, so null != false actually evaluates to false. On push runs this silently disabled both debug flags instead of preserving the previous hardcoded --debugsources --debugposters behavior.
  • Fix: explicitly branch on github.event_name instead of relying on null/boolean coercion, so push runs always debug and workflow_dispatch runs respect the manual input.
  • Addresses Github workflow for dev is defaulting to having debug flags off after adding the workflow inputs #163

Test plan

  • Validated .github/workflows/dev.yml still parses via yaml.safe_load
  • Trigger a push run and confirm --debugsources --debugposters are applied (mock sources/posters used)
  • Trigger workflow_dispatch with both inputs set to false and confirm the flags are omitted (live API/posters used)

🤖 Generated with Claude Code

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant