Skip to content

Commit 29618a2

Browse files
committed
Add workflow to trigger a 4.3 alpha build
1 parent 55f9cfd commit 29618a2

File tree

3 files changed

+38
-4
lines changed

3 files changed

+38
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- name: Compute prerelease identifier from commit SHA
1919
run: echo "PRERELEASE_IDENTIFIER=`echo ${{ github.sha }} | cut -c1-8`" >> $GITHUB_ENV
20-
- name: Trigger a 4.0.x alpha build in ${{ env.DEV_WORKFLOW_REPOSITORY }}
20+
- name: Trigger a 4.1.x alpha build in ${{ env.DEV_WORKFLOW_REPOSITORY }}
2121
uses: peter-evans/repository-dispatch@v4
2222
with:
2323
token: ${{ secrets.MK_RELEASE_AUTOMATION_TOKEN }}

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

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

0 commit comments

Comments
 (0)