Skip to content

Percy build:wait fails in github action #952

Discussion options

You must be logged in to vote

Hey @diogofscmariano & @yjaaidi!

I wanted to chime in to say we've addressed this issue in this PR (#1008) as well as add in an extra feature so you no longer need to handle the pull_request.head.sha yourself!

Once that is merged and released, you'll be able to omit the --commit flag, causing the command to default to the commit found in the environment. Which, in the case of GitHub Actions, is exactly the event payload & fallback @yjaaidi suggested

return github(this.vars).pull_request?.head.sha || this.vars.GITHUB_SHA;

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@yjaaidi
Comment options

Answer selected by Robdel12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
3 participants