- Notifications
You must be signed in to change notification settings - Fork455
Fix README error#392
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Fix README error#392
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I believe this example was intending the SHA to be set as an input
-uses:actions/github-script@v6env:SHA:'${{env.parentSHA}}'with:script:| const script = require('./path/to/script.js') await script({github, context, core})
Soprocess.env.SHA
wasn't meant to directly match an existingvariable in the context likeGITHUB_SHA
That makes sense. I'm not sure I see |
Just a heads up, I did just remove these lines in a new commit. |
I was using the example from the README to setup an async script in a workflow and got this error from the API:
Digging a bit deeper, I discovered that
process.env.SHA
didn't exist, and should probably beGITHUB_SHA
instead. Swapping it out to this worked.