Skip to content

Conversation

@zaro0508
Copy link
Contributor

When triggering jobs with workflow_run the default git ref to fetch is the
default branch[1], causing all deploys to use the dev branch. We want the
workflow to checkout the branch that trigger the event. The github
community suggested solution is to change workflow_run to workflow_call[2]

[1] https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#workflow_run
[2] https://github.com/orgs/community/discussions/72097#discussioncomment-7376117

When triggering jobs with workflow_run the default git ref to fetch is
the default branch[1], causing all deploys to use the dev branch. We
want the workflow to checkout the branch that trigger the event.
The github community suggested solution is to change workflow_run to
workflow_call[2]

[1] https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#workflow_run
[2] https://github.com/orgs/community/discussions/72097#discussioncomment-7376117
@zaro0508 zaro0508 requested review from a team as code owners January 15, 2025 22:22
@zaro0508 zaro0508 requested a review from a team January 16, 2025 16:07
@zaro0508 zaro0508 merged commit bc7a9a3 into Sage-Bionetworks-IT:main Jan 16, 2025
4 checks passed
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.

3 participants