Skip to content

Commit 3b34f9f

Browse files
committed
Add wait-for-checks job to ensure all tests complete before labeling and notifications
1 parent 0f19166 commit 3b34f9f

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/pr-automation.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,25 @@ jobs:
124124
echo "passed=true" >> $GITHUB_OUTPUT
125125
fi
126126
127+
# Wait for all checks to complete
128+
wait-for-checks:
129+
name: ⏳ Wait for All Tests
130+
runs-on: ubuntu-latest
131+
needs: run-tests
132+
if: always()
133+
134+
steps:
135+
- name: Wait for other workflows
136+
run: |
137+
echo "⏳ Waiting for all validation and test workflows to complete..."
138+
sleep 30
139+
echo "✅ Proceeding with labeling and notifications"
140+
127141
# Auto-labeling and first-time contributor welcome
128142
auto-label:
129143
name: 🏷️ Auto Label & Welcome
130144
runs-on: ubuntu-latest
131-
needs: run-tests
145+
needs: [run-tests, wait-for-checks]
132146
if: always()
133147

134148
steps:
@@ -279,7 +293,7 @@ jobs:
279293
notify-status:
280294
name: 📢 Notify Status
281295
runs-on: ubuntu-latest
282-
needs: [run-tests, auto-label]
296+
needs: [run-tests, auto-label, wait-for-checks]
283297
if: always()
284298

285299
steps:

0 commit comments

Comments
 (0)