Skip to content

Commit 2278e4c

Browse files
New workflow for triggering alpha releases
in rabbitmq/server-packages, an Actions-only repo dedicated to open source RabbitMQ release automation.
1 parent 92a4046 commit 2278e4c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/alpha-build.yaml

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

0 commit comments

Comments
 (0)