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

fix: prevent manifest update after another commit #313

Merged

Conversation

hspitzley-czi
Copy link
Contributor

@hspitzley-czi hspitzley-czi commented Sep 20, 2024

The recent update to this builder action to support triggering it from a pull_request trigger involved a change to the checkout action that caused some issues. In the image below, the commits from the builder are dependent on how long it takes to build, meaning sometimes a prior build that took longer to build would overwrite a more recent build that had already committed back to the values yaml.


Screenshot 2024-09-20 at 2 38 55 PM

This issue arose because the checkout action started receiving a ref argument that would be set to the branch name in the case of a push event, this caused the job to checkout the latest from the branch and then push over whatever was already there. Not supplying the ref, or setting it to an empty string, causes the checkout action to fetch at the point that the workflow was triggered, which in turn causes the commit of the build sha to fail if a newer commit has updated the build sha since the job was initially invoked.

@hspitzley-czi hspitzley-czi merged commit 184fd1b into main Sep 23, 2024
13 checks passed
@hspitzley-czi hspitzley-czi deleted the hspitzley/prevent_manifest_update_after_another_commit branch September 23, 2024 18:08
@czi-github-helper czi-github-helper bot mentioned this pull request Sep 23, 2024
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