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

chore: only attempt to run release workflow when merging PR #854

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

achou11
Copy link
Member

@achou11 achou11 commented Sep 19, 2024

Does a couple of things:

  • Makes sure the pull request is targeting the main branch. Not sure if there are cases where we want this thing to run when that isn't the case

  • Makes sure that the pull request is actually merged. Before, the workflow was being run when closing a pull request (and not merging), which adds more noise than necessary


jobs:
release:
if: github.event.pull_request.merged == true
Copy link
Member Author

Choose a reason for hiding this comment

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

@achou11 achou11 force-pushed the ac/release-workflow-only-on-merge branch from d01d74a to 2d51a8c Compare September 19, 2024 19:33
@achou11 achou11 force-pushed the ac/release-workflow-only-on-merge branch from 2d51a8c to e5ea022 Compare September 19, 2024 20:18
@achou11 achou11 merged commit d609f64 into main Sep 23, 2024
6 checks passed
@achou11 achou11 deleted the ac/release-workflow-only-on-merge branch September 23, 2024 15:19
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