You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/4.2.x-beta-release.yml
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,36 @@ permissions:
13
13
contents: write
14
14
15
15
jobs:
16
+
check-test-status:
17
+
runs-on: ubuntu-latest
18
+
steps:
19
+
- name: Check Test Mixed with 3.13 workflow status
20
+
run: |
21
+
# Get the most recent run of the "Test Mixed with 3.13" workflow
22
+
WORKFLOW_STATUS=$(gh run list --repo rabbitmq/rabbitmq-server --workflow="Test Mixed with 3.13" --limit=1 --json status --jq '.[0].status')
23
+
24
+
echo "Most recent 'Test Mixed with 3.13' workflow status: $WORKFLOW_STATUS"
25
+
26
+
if [ "$WORKFLOW_STATUS" != "completed" ]; then
27
+
echo "::error::The most recent 'Test Mixed with 3.13' workflow has not completed successfully. Current status: $WORKFLOW_STATUS"
28
+
exit 1
29
+
fi
30
+
31
+
# Also check the conclusion to ensure it was successful
32
+
WORKFLOW_CONCLUSION=$(gh run list --repo rabbitmq/rabbitmq-server --workflow="Test Mixed with 3.13" --limit=1 --json conclusion --jq '.[0].conclusion')
33
+
echo "Most recent 'Test Mixed with 3.13' workflow conclusion: $WORKFLOW_CONCLUSION"
34
+
35
+
if [ "$WORKFLOW_CONCLUSION" != "success" ]; then
36
+
echo "::error::The most recent 'Test Mixed with 3.13' workflow did not complete successfully. Conclusion: $WORKFLOW_CONCLUSION"
37
+
exit 1
38
+
fi
39
+
40
+
echo "The most recent 'Test Mixed with 3.13' workflow completed successfully. Proceeding with release."
0 commit comments