Skip to content

Commit ce5bb4c

Browse files
committed
include reporting stage
1 parent a7d733a commit ce5bb4c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.gitlab-ci.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,17 @@ stages:
1010
.report-status:
1111
variables:
1212
STATUS_PROJECT: "hpc-io/pdc"
13-
STATUS_NAME: "NERSC"
13+
STATUS_NAME: "NERSC / Perlmutter"
1414
script:
1515
# For complete details on the GitHub API please see:
1616
# https://developer.github.com/v3/repos/statuses
17-
- echo "CI_JOB_NAME = ${CI_JOB_NAME}"
18-
- curl -X POST -H "Authorization:token ${GITHUB_TOKEN}" https://api.github.com/repos/${STATUS_PROJECT}/statuses/${CI_COMMIT_SHA}?state=${CI_JOB_NAME}\&context=${STATUS_NAME}\&target_url=${CI_PIPELINE_URL}
17+
- curl -L \
18+
-X POST \
19+
-H "Accept: application/vnd.github+json" \
20+
-H "Authorization: Bearer @${GITHUB_TOKEN}" \
21+
-H "X-GitHub-Api-Version: 2022-11-28" \
22+
https://api.github.com/repos/${STATUS_PROJECT}/statuses/${CI_COMMIT_SHA}? \
23+
-d '{"state":"${CI_JOB_NAME}","target_url":"${CI_PIPELINE_URL}","context":"${STATUS_NAME"}'
1924

2025
pending:
2126
stage: .pre

0 commit comments

Comments
 (0)