Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Fix wrong commit sha#10

Merged
jgoux merged 1 commit intosnaplet:mainfrom
ofhouse:ofhouse/fix-sha
Mar 23, 2023
Merged

Fix wrong commit sha#10
jgoux merged 1 commit intosnaplet:mainfrom
ofhouse:ofhouse/fix-sha

Conversation

@ofhouse
Copy link
Copy Markdown
Contributor

@ofhouse ofhouse commented Mar 23, 2023

TIL that GITHUB_SHA is a ghost commit with the same content but with a different sha when it is triggered from a PR workflow 🙈
https://github.com/orgs/community/discussions/26325

So because the workflow is triggered from a Pull request we pull the commit with the wrong sha and add the status to the wrong commit after the Vercel build is done.
That's why the status check never gets updated from Canceled by Ignored Build Step.

Fix here is not to rely on GITHUB_SHA but instead get it directly from the context if available.

Related discussion: vercel/vercel#8328 (reply in thread)

@jgoux
Copy link
Copy Markdown
Contributor

jgoux commented Mar 23, 2023

Good catch, thanks!

@jgoux jgoux merged commit a84e8e0 into snaplet:main Mar 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants