Skip to content

[CHORE] Fix repository-dispatch branch reset boolean payload #293

@c-vigo

Description

@c-vigo

Chore Type

CI / Build change

Description

Fix the smoke-test repository-dispatch workflow branch-reset step that fails when reusing an existing deploy branch (chore/deploy-<tag>).

Current failure in Prepare deploy branch and metadata:

  • gh api -X PATCH ... -f force=true
  • GitHub API returns HTTP 422 because force is sent as a string instead of a boolean.

This blocks deploy PR creation for repeat dispatches/re-runs.

Acceptance Criteria

  • repository-dispatch updates an existing chore/deploy-<tag> branch without API validation errors
  • Deploy tag and open PR to dev completes successfully for both:
    • first run (branch create path)
    • rerun/redeploy (branch patch path)
  • Dispatch summary passes after deploy succeeds
  • Add or update tests/verification evidence for this workflow behavior

Implementation Notes

  • Update gh api argument typing for the PATCH call in:
    • assets/smoke-test/.github/workflows/repository-dispatch.yml
    • build/assets/smoke-test/.github/workflows/repository-dispatch.yml
  • Prefer typed boolean input (e.g. -F force=true) or equivalent JSON payload with boolean true.
  • Validate with a manual dispatch against an existing deploy branch.

Related Issues

Priority

High

Changelog Category

No changelog needed

Additional Context

Failing job:
https://github.com/vig-os/devcontainer-smoke-test/actions/runs/23051686417/job/66954252175

Observed error:
For 'properties/force', "true" is not a boolean. (HTTP 422)

Metadata

Metadata

Assignees

Labels

area:ciCI/CD, GitHub Actions, workflowschoreGeneral tasks (e.g. update dependencies, contact a manufacturer, read a paper)effort:smallLess than 1 hourpriority:highShould be done in the current milestonesemver:patchBug fix, backward-compatible

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions