build: fix promotion sha (#7022)

This commit is contained in:
Zach Pomerantz 2023-07-26 11:51:49 -07:00 committed by GitHub
parent 4d084d0055
commit 3cb069283c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)