File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 2424 TIMEOUT_MINUTES : 360
2525
2626 steps :
27+ - name : Checkout repository
28+ uses : actions/checkout@v4
29+
2730 - name : Wait and Verify Yamato Job Status
2831 env :
2932 GH_TOKEN : ${{ secrets.GH_TOKEN }}
4851 fi
4952
5053 # --- Get PR Checks using GitHub CLI ---
54+ # https://cli.github.com/manual/gh_pr_checks
5155 # This command gets all checks for the current PR in JSON format
5256 checks_json=$(gh pr checks ${{ github.event.pull_request.number }} --json name,state)
5357
@@ -64,12 +68,11 @@ jobs:
6468 else
6569 echo "Check '$CHECK_NAME' not found yet. Continuing to poll..."
6670 fi
67- elif [ "$check_status" == "in_progress" ] || [ "$check_status" == "queued " ]; then
71+ elif [ "$check_status" == "pending " ]; then
6872 # Case 2: The check is running.
6973 echo "Check '$CHECK_NAME' is currently '$check_status'. Waiting..."
70- elif [ "$check_status" == "completed " ]; then
74+ elif [ "$check_status" == "pass " ]; then
7175 # Case 3: The check has finished.
72- if [ "$check_status" == "success" ]; then
7376 echo "Check '$CHECK_NAME' completed with conclusion: 'success'. Great!"
7477 exit 0
7578 else
You can’t perform that action at this time.
0 commit comments