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: ...@@ -26,6 +26,7 @@ default:
dotenv: juggler.env dotenv: juggler.env
stages: stages:
- status-pending
- config - config
- initialize - initialize
- data_init - data_init
...@@ -35,6 +36,24 @@ stages: ...@@ -35,6 +36,24 @@ stages:
- collect - collect
- deploy - deploy
- trigger - 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: common:setup:
stage: config stage: config
...@@ -132,6 +151,25 @@ deploy_results: ...@@ -132,6 +151,25 @@ deploy_results:
script: script:
- echo "deploy results!" - 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: benchmarks:reconstruction:
stage: trigger stage: trigger
variables: variables:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment