fix README error

This commit is contained in:
Daniel Slatkin 2023-06-01 19:33:28 -07:00 committed by GitHub
parent 6f00a0b667
commit 9b5507124b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -350,11 +350,11 @@ And then export an async function from your module:
```javascript
module.exports = async ({github, context, core}) => {
const {SHA} = process.env
const {GITHUB_SHA} = process.env
const commit = await github.rest.repos.getCommit({
owner: context.repo.owner,
repo: context.repo.repo,
ref: `${SHA}`
ref: `${GITHUB_SHA}`
})
core.exportVariable('author', commit.data.commit.author.email)
}