Skip to content

Commit

Permalink
Update start_e2e_test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
weiiwang01 committed Jun 18, 2023
1 parent b0ed3e8 commit a9d5da8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/start_e2e_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
gh run list \
-R ${{ secrets.E2E_TESTING_REPO }} \
-L 100 \
--json headBranch,status,workflowDatabaseId \
--json headBranch,status,workflowDatabaseId,conclusion \
| jq '.[] | select(.headBranch=="e${{ github.run_id }}n${{ github.run_number }}r")'
get-workflow-status() {
Expand Down Expand Up @@ -161,6 +161,13 @@ jobs:
kill $(jobs -p)
if [[ $status != "not-started" && $status != "queued" && $status != "in_progress" ]]; then
conclusion=$(gh run list \
-R ${{ secrets.E2E_TESTING_REPO }} \
-L 100 \
--json headBranch,conclusion \
| jq '.[] | select(.headBranch=="e${{ github.run_id }}n${{ github.run_number }}r") | .[0].conclusion')
if [[ $status != "completed" || $conclusion != "success" ]]; then
echo test workflow failed
exit 1
fi

0 comments on commit a9d5da8

Please sign in to comment.