1
0
mirror of synced 2025-12-22 03:16:52 -05:00

ReferenceError in .github/actions-scripts/staging-commit-status-success.js (#23697)

This commit is contained in:
Peter Bengtsson
2021-12-14 10:56:16 -05:00
committed by GitHub
parent 18b7b9d24c
commit d3396ff4c0

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env node #!/usr/bin/env node
import * as github from '@actions/github'
import getOctokit from '../../script/helpers/github.js' import getOctokit from '../../script/helpers/github.js'
const { GITHUB_TOKEN } = process.env const { GITHUB_TOKEN } = process.env
@@ -25,6 +27,10 @@ if (!HEAD_SHA) {
throw new Error('$HEAD_SHA not set') throw new Error('$HEAD_SHA not set')
} }
const { context } = github
const owner = context.repo.owner
const repo = context.payload.repository.name
await octokit.repos.createCommitStatus({ await octokit.repos.createCommitStatus({
owner, owner,
repo, repo,