Skip to content

Update deploy condition to explicitly limit to the main branch. Envir…#347

Closed
heskew wants to merge 1 commit intomainfrom
workflow-upd
Closed

Update deploy condition to explicitly limit to the main branch. Envir…#347
heskew wants to merge 1 commit intomainfrom
workflow-upd

Conversation

@heskew
Copy link
Copy Markdown
Member

@heskew heskew commented Oct 11, 2025

…onment protection limits to main but let's not even try.

…onment protection limits to main but let's not even try.
@heskew heskew requested a review from Ethan-Arrowood October 11, 2025 02:36
# Only deploy on push to main or manual trigger, not on PRs
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
# Only deploy on push to main or manual trigger from main branch, not on PRs
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if we had a build workflow that ran on everything, and then a deploy workflow that only ever ran on push to main and used the build workflow as a prereq?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice to cleanup the skipped job in every pr workflow :)

I'll do a bit more of an update when I can get a chance.

@heskew heskew marked this pull request as draft October 19, 2025 14:41
@Ethan-Arrowood
Copy link
Copy Markdown
Member

I'm going to close this. I believe I've made the changes reference here already in the specified workflow.

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