build: fix promotion sha (#7022)
This commit is contained in:
parent
4d084d0055
commit
3cb069283c
2
.github/workflows/3-staging-to-prod.yml
vendored
2
.github/workflows/3-staging-to-prod.yml
vendored
@ -21,7 +21,7 @@ jobs:
|
||||
const statuses = await github.rest.repos.listCommitStatusesForRef({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
ref: context.payload.head_commit.sha
|
||||
ref: context.sha
|
||||
})
|
||||
const status = statuses.data.find(status => status.context === 'Test / promotion')?.state || 'missing'
|
||||
core.info('Status: ' + status)
|
||||
|
Loading…
Reference in New Issue
Block a user