Skip to content

fix(ci): workflow_dispatch boolean input for SDK generation#755

Merged
leggetter merged 1 commit intomainfrom
fix/workflow-dispatch-boolean
Mar 13, 2026
Merged

fix(ci): workflow_dispatch boolean input for SDK generation#755
leggetter merged 1 commit intomainfrom
fix/workflow-dispatch-boolean

Conversation

@leggetter
Copy link
Collaborator

Problem

Manual SDK generation workflows (Generate OUTPOST-GO, OUTPOST-TS, OUTPOST-PYTHON) fail with:

evaluate reusable workflow inputs: Unexpected value 'false'

when run with the default Force checkbox unchecked.

workflow_dispatch inputs are always strings ("true" / "false"). Passing force: ${{ github.event.inputs.force }} sends the string "false" into the reusable workflow, which expects a boolean and rejects it.

Fix

Convert the input to a boolean before passing to sdk-generate-one.yml:

force: ${{ github.event.inputs.force == 'true' }}

Applied in all three manual workflows:

  • .github/workflows/sdk_generation_outpost_go.yaml
  • .github/workflows/sdk_generation_outpost_ts.yaml
  • .github/workflows/sdk_generation_outpost_python.yaml

Testing

Re-run Generate OUTPOST-GO (or trigger manually) with Force unchecked; the workflow should start successfully.

Made with Cursor

…e input

workflow_dispatch inputs are strings; passing force as string "false" caused
'Unexpected value "false"' when calling sdk-generate-one. Convert with
force == 'true' so the reusable workflow receives a proper boolean.

Made-with: Cursor
@vercel
Copy link

vercel bot commented Mar 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
outpost-docs Building Building Preview, Comment Mar 13, 2026 0:44am
outpost-website Ready Ready Preview, Comment Mar 13, 2026 0:44am

Request Review

Copilot AI review requested due to automatic review settings March 13, 2026 12:44
@leggetter leggetter merged commit d6a06fe into main Mar 13, 2026
5 of 6 checks passed
@leggetter leggetter deleted the fix/workflow-dispatch-boolean branch March 13, 2026 12:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the manual per-language SDK generation GitHub workflows to pass a proper boolean value for the force input into the reusable sdk-generate-one.yml workflow (which declares force as a boolean).

Changes:

  • Convert force from the workflow_dispatch event payload into a boolean expression (== 'true') when passing to the reusable workflow.
  • Apply the same force handling consistently across Go, Python, and TypeScript SDK generation workflows.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/sdk_generation_outpost_ts.yaml Ensures force is passed as a boolean when triggering TS SDK generation.
.github/workflows/sdk_generation_outpost_python.yaml Ensures force is passed as a boolean when triggering Python SDK generation.
.github/workflows/sdk_generation_outpost_go.yaml Ensures force is passed as a boolean when triggering Go SDK generation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +19 to 20
force: ${{ github.event.inputs.force == 'true' }}
set_version: ${{ github.event.inputs.set_version }}
Comment on lines +19 to 20
force: ${{ github.event.inputs.force == 'true' }}
set_version: ${{ github.event.inputs.set_version }}
Comment on lines +19 to 20
force: ${{ github.event.inputs.force == 'true' }}
set_version: ${{ github.event.inputs.set_version }}
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.

2 participants