Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify the git ref to checkout during deploy #95

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

ConsoleCatzirl
Copy link
Member

When triggering jobs with workflow_run the default git ref to fetch is the default branch, causing all deploys to use the dev branch. Override the default ref with the name of the environment in order to deploy from the corresponding branch.

https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#workflow_run

When triggering jobs with `workflow_run` the default git ref to fetch
is the default branch[0], causing all deploys to use the dev branch.
Override the default ref with the name of the environment in order
to deploy from the corresponding branch.

[0] https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#workflow_run
@ConsoleCatzirl ConsoleCatzirl requested review from a team as code owners January 10, 2025 23:49
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.

2 participants