Skip to content

feat: add deploy_to_test workflow_dispatch input#698

Merged
rajbos merged 1 commit into
mainfrom
rajbos/add-deploy-to-test-dispatch
Apr 29, 2026
Merged

feat: add deploy_to_test workflow_dispatch input#698
rajbos merged 1 commit into
mainfrom
rajbos/add-deploy-to-test-dispatch

Conversation

@rajbos
Copy link
Copy Markdown
Owner

@rajbos rajbos commented Apr 29, 2026

Summary

Adds a deploy_to_test boolean input to the workflow_dispatch trigger on the Deploy Sharing Server workflow.

What changed

  • workflow_dispatch now exposes a deploy_to_test boolean input (default: false)
  • The setup job passes the input as an env var (FORCE_TEST) and checks it alongside github.ref
  • When deploy_to_test: true is selected in the UI, a manual run from main routes to the testing environment (same slug+hash naming as branch deployments) instead of production

Behaviour matrix

Trigger deploy_to_test Environment
Push to main n/a production
Push to any other branch n/a testing
Manual dispatch from main false (default) production
Manual dispatch from main true testing
Manual dispatch from any branch either testing

Adds a boolean deploy_to_test input to the workflow_dispatch trigger.
When set to true, a manual run from the main branch will route to the
testing environment instead of production (same slug/hash logic as
branch-based deployments).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@rajbos rajbos enabled auto-merge April 29, 2026 12:25
@rajbos rajbos merged commit b8e05a8 into main Apr 29, 2026
22 checks passed
@rajbos rajbos deleted the rajbos/add-deploy-to-test-dispatch branch April 29, 2026 12:28
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