product-os / flowzone

Reusable, opinionated, zero-conf workflows for GitHub actions
https://flowzone.pages.dev
Apache License 2.0
15 stars 5 forks source link

Fallback to an invalid ref if the checkout ref is undefined #1054

Closed klutchell closed 4 months ago

klutchell commented 4 months ago

We've seen cases where the checkout ref was undefined because a step with the output wasn't run, or because of unexpected results in the github context json.

Without this change, the checkout would continue but quietly fallback to the ref or sha for the event with unexpected results.

With this change, the checkout will fail so we can fix the workflow.

Change-type: patch