mirror of
https://github.com/actions/github-script.git
synced 2026-02-07 19:47:26 +00:00
fix README error
This commit is contained in:
parent
6f00a0b667
commit
9b5507124b
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue