Skip to content

Commit 2b0b430

Browse files
Merge pull request #5 from rabbitmq/check-upgrades-before-beta
Check if upgrades from 3.13 are not broken before 4.2 beta
2 parents 1276943 + 1088b69 commit 2b0b430

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/4.2.x-beta-release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,36 @@ permissions:
1313
contents: write
1414

1515
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."
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.MK_RELEASE_AUTOMATION_TOKEN }}
43+
1644
release:
45+
needs: check-test-status
1746
uses: ./.github/workflows/reusable-release-workflow.yml
1847
with:
1948
series_branch: "main"

0 commit comments

Comments
 (0)