Percy build:wait fails in github action #952
-
Hi
Not much to debug from. The error does not seem to be from the authentication token. Usually a 403 is fired, at least locally. Same command works locally tho. Node: 16.15.0 Config file: Any hint? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @diogofscmariano, I just stumbled on the same issue while switching from The issue happens for workflows triggered by There are two alternatives:
run: yarn percy build:wait --project 1724df30/React-Component-Library --commit "${PR_HEAD_SHA:-$GITHUB_SHA}" --fail-on-changes
env:
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }} |
Beta Was this translation helpful? Give feedback.
-
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 Once that is merged and released, you'll be able to omit the cli/packages/env/src/environment.js Line 105 in 937e5d0 |
Beta Was this translation helpful? Give feedback.
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 suggestedcli/packages/env/src/environment.js
Line 105 in 937e5d0