Skip to content

feat: make debug flags configurable via workflow_dispatch inputs#151

Open
abhiramvsmg wants to merge 1 commit into
codeforboston:masterfrom
abhiramvsmg:feat/debug-flags-workflow-dispatch
Open

feat: make debug flags configurable via workflow_dispatch inputs#151
abhiramvsmg wants to merge 1 commit into
codeforboston:masterfrom
abhiramvsmg:feat/debug-flags-workflow-dispatch

Conversation

@abhiramvsmg

Copy link
Copy Markdown

Added debugsources and debugposters as boolean inputs on workflow_dispatch, so both flags can be toggled when manually running the dev workflow, per the GitHub Actions docs referenced in the issue.

Both inputs default to true, matching the existing hardcoded behavior. The "Call RescueGroups API" step now builds the --debugsources/--debugposters flags dynamically from those inputs instead of hardcoding them. On a normal push trigger (not manual dispatch), inputs.debugsources is undefined, and undefined != false evaluates to true, so push-triggered runs behave exactly as before — no regression there.

Validated the YAML parses correctly with yaml.safe_load.

Closes #150

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.

Add debug flags as Github Action Inputs

1 participant