<#7372 [Fix] make CI only runs on main branch> Pul...
# flyte-github
a
#7372 [Fix] make CI only runs on main branch Pull request opened by machichima Tracking issue Why are the changes needed? We discovered some CI in main branch running in the PR that's merging into master, which blocks the PR from being merged: https://github.com/flyteorg/flyte/actions/runs/25786689725/job/75741746463?pr=7369 What changes were proposed in this pull request? As mentioned in docs: https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target, when using
pull_request_target
, it will run the CI defined in the default branch rather than the base repository.
This event runs in the context of the default branch of the base repository, rather than in the context of the merge commit, as the pull_request event does
This PR adds
branches
filter to ensure they only execute on
main
branch How was this patch tested? Labels Please add one or more of the following labels to categorize your PR: • added: For new features. • changed: For changes in existing functionality. • deprecated: For soon-to-be-removed features. • removed: For features being removed. • fixed: For any bug fixed. • security: In case of vulnerabilities This is important to improve the readability of release notes. Setup process Screenshots Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. Related PRs Stack If you do use
git town
to manage PR Stacks, the stack relevant to this PR will show below. Otherwise, you can ignore this section. Docs link flyteorg/flyte