Skip to content
Snippets Groups Projects
Commit 52611813 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: send status updates to github

parent 60b89e20
No related branches found
No related tags found
1 merge request!120fix: send status updates to github
......@@ -26,6 +26,7 @@ default:
dotenv: juggler.env
stages:
- status-pending
- config
- initialize
- data_init
......@@ -35,6 +36,24 @@ stages:
- collect
- deploy
- trigger
- status-success
benchmarks:detector:pending:
stage: status-pending
script:
- |
if [ -n "${GITHUB_SHA}" ] ; then
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${GITHUB_REPO_STATUS_TOKEN}" \
https://api.github.com/repos/${GITHUB_REPOSITORY}/statuses/${GITHUB_SHA} \
-d '{"state":"pending", \
"target_url":"${CI_PIPELINE_URL}", \
"description":"The detector benchmarks are running...", \
"context":"eicweb/detector_benchmarks" \
}' ;
fi
common:setup:
stage: config
......@@ -132,6 +151,25 @@ deploy_results:
script:
- echo "deploy results!"
benchmarks:detector:success:
stage: status-success
needs:
- ["deploy_results"]
script:
- |
if [ -n "${GITHUB_SHA}" ] ; then
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${GITHUB_REPO_STATUS_TOKEN}" \
https://api.github.com/repos/${GITHUB_REPOSITORY}/statuses/${GITHUB_SHA} \
-d '{"state":"success", \
"target_url":"${CI_PIPELINE_URL}", \
"description":"The detector benchmarks succeeded!", \
"context":"eicweb/detector_benchmarks" \
}' ;
fi
benchmarks:reconstruction:
stage: trigger
variables:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment