|
| 1 | +name: "4.3.x beta release" |
| 2 | +on: |
| 3 | + workflow_dispatch: |
| 4 | + inputs: |
| 5 | + prerelease_identifier: |
| 6 | + # can be a number, a commit SHA prefix |
| 7 | + type: string |
| 8 | + description: "Preview identifier (e.g. an integer or a commit SHA) to use" |
| 9 | + required: true |
| 10 | + default: "1" |
| 11 | + |
| 12 | +permissions: |
| 13 | + contents: write |
| 14 | + |
| 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." |
| 41 | + env: |
| 42 | + GITHUB_TOKEN: ${{ secrets.MK_RELEASE_AUTOMATION_TOKEN }} |
| 43 | + |
| 44 | + release: |
| 45 | + needs: check-test-status |
| 46 | + uses: ./.github/workflows/reusable-release-workflow.yml |
| 47 | + with: |
| 48 | + series_branch: "main" |
| 49 | + # see https://github.com/rabbitmq/build-env-images |
| 50 | + build_env_image: "rabbitmqdevenv/build-env-26.2" |
| 51 | + latest_build_env_image: "rabbitmqdevenv/build-env-27.3" |
| 52 | + base_version: ${{ vars.SERVER_43_NEXT_PATCH_VERSION }} |
| 53 | + prerelease: true |
| 54 | + prerelease_kind: "beta" |
| 55 | + prerelease_identifier: ${{ inputs.prerelease_identifier }} |
| 56 | + # "rabbitmq/server-packages" is used for development; switch to "rabbitmq/rabbitmq-server" before producing a release |
| 57 | + release_repository: "rabbitmq/rabbitmq-server" |
| 58 | + release_title: "RabbitMQ ${{ vars.SERVER_43_NEXT_PATCH_VERSION }}-beta.${{ inputs.prerelease_identifier }}" |
| 59 | + release_description: "RabbitMQ ${{ vars.SERVER_43_NEXT_PATCH_VERSION }}-beta.${{ inputs.prerelease_identifier }}" |
| 60 | + release_tag: "v${{ vars.SERVER_43_NEXT_PATCH_VERSION }}-beta.${{ inputs.prerelease_identifier }}" |
| 61 | + # applies to Debian and RPM packages only |
| 62 | + gpg_sign_release: true |
| 63 | + publish_to_cloudsmith: true |
| 64 | + cloudsmith_repository: "rabbitmq-server-prereleases" |
| 65 | + secrets: inherit |
0 commit comments