Skip to content

Commit 313e042

Browse files
Merge pull request #12639 from rabbitmq/mk-actions-notify-server-trigger-packages-workflow
4.1.x: new Actions workflow for triggering alpha releases
2 parents 92a4046 + b063a99 commit 313e042

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/alpha-build.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Trigger an alpha release build
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- "main"
7+
- "mk-actions-notify-server-trigger-packages-workflow"
8+
paths:
9+
- "deps/**"
10+
- ".github/workflows/**"
11+
12+
jobs:
13+
trigger_alpha_build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Trigger an alpha build in rabbitmq/server-packages
17+
run: |
18+
curl -L \
19+
-X POST \
20+
-H "Accept: application/vnd.github+json" \
21+
-H "Authorization: Bearer ${{ secrets.RABBITMQCI_BOT_TOKEN }}" \
22+
-H "X-GitHub-Api-Version: 2022-11-28" \
23+
https://api.github.com/repos/rabbitmq/server-packages/dispatches \
24+
-d '{"event_type": "new_4.1.x_alpha", "client_payload": {"prerelease": true, "prerelease_kind": "alpha", "prerelease_identifier": "${{ github.ref }}", "base_version": "4.1.0"}}'

0 commit comments

Comments
 (0)