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

releases: trigger the build action only after the unit tests #36254

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

liamcervante
Copy link
Member

@liamcervante liamcervante commented Jan 2, 2025

This PR updates the build action so that on pushes to branches, it only triggers after the Quick Checks action. We then check that if the event type was workflow_run, we'll only trigger if the quick checks were successful.

This should ensure that we only build on pushes where the unit tests are passing. Pushes to tags, or direct builds via workflow_dispatch should continue working as before.

Closes hashicorp/terraform-releases#133

Copy link
Member

@radeksimko radeksimko left a comment

Choose a reason for hiding this comment

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

Curious if there was any particular event or motivation behind this? Was it just to cut down on CI time/costs spent on builds we may never need because they may be broken?

@xiehan
Copy link
Member

xiehan commented Jan 2, 2025

https://github.com/hashicorp/terraform-releases/issues/133 was the origin of this.

@liamcervante liamcervante merged commit 3b42e0a into main Jan 3, 2025
7 checks passed
@liamcervante liamcervante deleted the liamcervante/build-after-checks branch January 3, 2025 08:26
Copy link
Contributor

github-actions bot commented Jan 3, 2025

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

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