1
0
mirror of synced 2026-01-06 06:02:35 -05:00

add run id env var (#23187)

This commit is contained in:
Rachael Sewell
2021-11-29 14:44:34 -08:00
committed by GitHub
parent 224194b6d3
commit fce7e3cbb9
2 changed files with 6 additions and 2 deletions

View File

@@ -21,7 +21,10 @@ if (!HEROKU_API_TOKEN) {
// instance to avoid versioning discrepancies.
const octokit = getOctokit()
const { PR_URL, SOURCE_BLOB_URL, CONTEXT_NAME, ACTIONS_RUN_LOG, HEAD_SHA } = process.env
const { RUN_ID, PR_URL, SOURCE_BLOB_URL, CONTEXT_NAME, ACTIONS_RUN_LOG, HEAD_SHA } = process.env
if (!RUN_ID) {
throw new Error('$RUN_ID not set')
}
if (!PR_URL) {
throw new Error('$PR_URL not set')
}
@@ -57,7 +60,7 @@ await deployToStaging({
forceRebuild: false,
// These parameters will ONLY be set by Actions
sourceBlobUrl: SOURCE_BLOB_URL,
runId: context.runId,
runId: RUN_ID,
})
await github.repos.createCommitStatus({

View File

@@ -499,6 +499,7 @@ jobs:
ACTIONS_RUN_LOG: ${{ env.ACTIONS_RUN_LOG }}
HEAD_SHA: ${{ needs.pr-metadata.outputs.head_sha }}
ALLOWED_POLLING_FAILURES_PER_PHASE: '15'
RUN_ID: ${{ github.run_id }}
run: .github/actions-scripts/staging-deploy.js
- name: Mark the deployment as inactive if timed out