Skip to content

Commit ad29876

Browse files
committed
Added repo checkout as first step
1 parent 5058583 commit ad29876

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/pr-supervisor.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
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 }}
@@ -48,6 +51,7 @@ jobs:
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

0 commit comments

Comments
 (0)