Skip to content

Commit bc20c7c

Browse files
committed
Propagate evergreen task URL to GHA summary
1 parent b13f70e commit bc20c7c

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.evergreen/functions.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ functions:
667667
<<: *compass-env
668668
DEBUG: ${debug|}
669669
GITHUB_TOKEN: ${generated_token}
670+
EVERGREEN_TASK_URL: https://spruce.mongodb.com/task/${task_id}
670671
script: |
671672
set -e
672673
# Load environment variables

.github/workflows/test-installers.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,19 @@ on:
2020
nonce:
2121
type: string
2222
description: 'A random string to track the run from dispatch to watching'
23+
evergreen_task_url:
24+
type: string
25+
description: 'URL to the Evergreen job that triggered this run'
2326

2427
run-name: Test Installers ${{ github.event.inputs.dev_version || github.ref_name }} / (nonce = ${{ github.event.inputs.nonce || 'not set' }})
2528

2629
jobs:
30+
summarize:
31+
if: ${{ github.event.inputs.evergreen_task_url }}
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Add a summary to the job
35+
run: echo "Triggered by ${{ github.event.inputs.evergreen_task_url }}" >> $GITHUB_STEP_SUMMARY
2736
test:
2837
name: ${{ matrix.package }} test ${{ matrix.test }} (${{ matrix.hadron-distribution }})
2938
strategy:

packages/compass-smoke-tests/src/cli.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ yargs(hideBin(process.argv))
165165
})
166166
: ref,
167167
devVersion: process.env.DEV_VERSION_IDENTIFIER,
168+
evergreenTaskUrl: process.env.EVERGREEN_TASK_URL,
168169
bucketName,
169170
bucketKeyPrefix,
170171
});

0 commit comments

Comments
 (0)