Skip to content

Prevent mt-sync-code-data from triggering release on manual non-default branch runs#694

Merged
mmathieum merged 6 commits into
masterfrom
copilot/fix-mt-sync-code-data-yml
Apr 21, 2026
Merged

Prevent mt-sync-code-data from triggering release on manual non-default branch runs#694
mmathieum merged 6 commits into
masterfrom
copilot/fix-mt-sync-code-data-yml

Conversation

Copilot AI commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

mt-sync-code-data.yml could trigger mt-release.yml during manual (workflow_dispatch) runs on non-default branches. This change tightens the release trigger guard so manual runs only trigger release from the repository default branch.

  • Release trigger guard update

    • Updated MT trigger release if required step condition in shared-overwrite/.github/workflows/mt-sync-code-data.yml.
    • Kept existing behavior for non-PR, non-manual events.
    • Added explicit default-branch requirement only for workflow_dispatch.
  • Condition logic

    • Manual runs now require github.ref_name == env.MT_DEFAULT_BRANCH_NAME before triggering release.
    • Pull requests and skip-app-release semantics remain unchanged.
if: ${{ github.event_name != 'pull_request'
  && github.event.inputs.skip-app-release != 'true'
  && (github.event_name != 'workflow_dispatch' || github.ref_name == env.MT_DEFAULT_BRANCH_NAME) }}

Loading
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.

mt-sync-code-data.yml > should not trigger release on non-default branch

2 participants