Skip to content

Commit 36be7bb

Browse files
Alpha release workflows: produce 4.2.x releases off of main
and 4.1.x ones off of v4.1.x, which is getting closer to the RC stage.
1 parent cf1bfa0 commit 36be7bb

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

.github/workflows/release-4.1.x-alphas.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ on:
33
workflow_dispatch:
44
push:
55
branches:
6-
# 4.1.x
7-
- "main"
6+
- "v4.1.x"
87
paths:
98
- "deps/*/src/**"
109
- 'deps/rabbitmq_management/priv/**'
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Trigger a 4.2.x alpha release build"
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
# 4.2.x
7+
- "main"
8+
paths:
9+
- "deps/*/src/**"
10+
- 'deps/rabbitmq_management/priv/**'
11+
- ".github/workflows/**"
12+
- "rabbitmq-components.mk"
13+
env:
14+
DEV_WORKFLOW_REPOSITORY: "rabbitmq/server-packages"
15+
jobs:
16+
trigger_alpha_build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Compute prerelease identifier from commit SHA
20+
run: echo "PRERELEASE_IDENTIFIER=`echo ${{ github.sha }} | cut -c1-8`" >> $GITHUB_ENV
21+
- name: Trigger a 4.0.x alpha build in ${{ env.DEV_WORKFLOW_REPOSITORY }}
22+
uses: peter-evans/repository-dispatch@v3
23+
with:
24+
token: ${{ secrets.RABBITMQCI_BOT_TOKEN }}
25+
repository: ${{ env.DEV_WORKFLOW_REPOSITORY }}
26+
event-type: "new_4.2.x_alpha"
27+
client-payload: |-
28+
{
29+
"release_repository": "${{ env.DEV_WORKFLOW_REPOSITORY }}",
30+
"release_description": "Commit: https://github.com/rabbitmq/rabbitmq-server/commit/${{ github.sha }}, pushed at: ${{ github.event.repository.pushed_at }}",
31+
"prerelease": true,
32+
"prerelease_kind": "alpha",
33+
"prerelease_identifier": "${{ env.PRERELEASE_IDENTIFIER }}",
34+
"release_title": "RabbitMQ ${{ vars.SERVER_42_NEXT_PATCH_VERSION }}-alpha.${{ env.PRERELEASE_IDENTIFIER }} (from ${{ github.event.repository.pushed_at }})",
35+
"base_version": "${{ vars.SERVER_42_NEXT_PATCH_VERSION }}"
36+
}

0 commit comments

Comments
 (0)