From 03b4f58f331cb607d706a04d81064d8c6b556962 Mon Sep 17 00:00:00 2001 From: Hrishikesh Barman Date: Wed, 29 Jan 2020 04:51:35 -0800 Subject: [PATCH] Updated contexts for GitHub actions Status updates. (#6709) Signed-off-by: Hrishikesh Barman --- .github/workflows/prombench.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/prombench.yml b/.github/workflows/prombench.yml index dfc1dbcaf..f1cfc2d4d 100644 --- a/.github/workflows/prombench.yml +++ b/.github/workflows/prombench.yml @@ -14,7 +14,7 @@ jobs: curl -i -X POST -H "Authorization: Bearer $GITHUB_TOKEN" -H "Content-Type: application/json" - --data '{"state":"pending", "context": "prombench-status-update", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' + --data '{"state":"pending", "context": "prombench-status-update-start", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' "https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA" - name: Run make deploy to start test id: make_deploy @@ -43,7 +43,7 @@ jobs: curl -i -X POST -H "Authorization: Bearer $GITHUB_TOKEN" -H "Content-Type: application/json" - --data '{"state":"failure", "context": "prombench-status-update", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' + --data '{"state":"failure", "context": "prombench-status-update-start", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' "https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA" - name: Update status to success if: success() @@ -54,7 +54,7 @@ jobs: curl -i -X POST -H "Authorization: Bearer $GITHUB_TOKEN" -H "Content-Type: application/json" - --data '{"state":"success", "context": "prombench-status-update", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' + --data '{"state":"success", "context": "prombench-status-update-start", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' "https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA" ############################# # Jobs for stopping benchmark @@ -72,7 +72,7 @@ jobs: curl -i -X POST -H "Authorization: Bearer $GITHUB_TOKEN" -H "Content-Type: application/json" - --data '{"state":"pending", "context": "prombench-status-update", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' + --data '{"state":"pending", "context": "prombench-status-update-cancel", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' "https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA" - name: Run make clean to stop test id: make_clean @@ -97,7 +97,7 @@ jobs: curl -i -X POST -H "Authorization: Bearer $GITHUB_TOKEN" -H "Content-Type: application/json" - --data '{"state":"failure", "context": "prombench-status-update", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' + --data '{"state":"failure", "context": "prombench-status-update-cancel", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' "https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA" - name: Update status to success if: success() @@ -108,7 +108,7 @@ jobs: curl -i -X POST -H "Authorization: Bearer $GITHUB_TOKEN" -H "Content-Type: application/json" - --data '{"state":"success", "context": "prombench-status-update", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' + --data '{"state":"success", "context": "prombench-status-update-cancel", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' "https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA" ############################### # Jobs for restarting benchmark @@ -126,7 +126,7 @@ jobs: curl -i -X POST -H "Authorization: Bearer $GITHUB_TOKEN" -H "Content-Type: application/json" - --data '{"state":"pending", "context": "prombench-status-update", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' + --data '{"state":"pending", "context": "prombench-status-update-restart", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' "https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA" - name: Run make clean then make deploy to restart test id: make_restart @@ -157,7 +157,7 @@ jobs: curl -i -X POST -H "Authorization: Bearer $GITHUB_TOKEN" -H "Content-Type: application/json" - --data '{"state":"failure", "context": "prombench-status-update", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' + --data '{"state":"failure", "context": "prombench-status-update-restart", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' "https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA" - name: Update status to success if: success() @@ -168,5 +168,5 @@ jobs: curl -i -X POST -H "Authorization: Bearer $GITHUB_TOKEN" -H "Content-Type: application/json" - --data '{"state":"success", "context": "prombench-status-update", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' + --data '{"state":"success", "context": "prombench-status-update-restart", "target_url": "https://github.com/'$GITHUB_REPOSITORY'/actions"}' "https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/$LAST_COMMIT_SHA"