Skip to content

release-4.0.x-alphas workflow: sync with its 4.1.x counterpart #7

release-4.0.x-alphas workflow: sync with its 4.1.x counterpart

release-4.0.x-alphas workflow: sync with its 4.1.x counterpart #7

name: "Trigger a 4.0.x alpha release build"
on:
workflow_dispatch:
push:
branches:
- "v4.0.x"
paths:
- "deps/*/src/**"
- 'deps/rabbitmq_management/priv/**'
- ".github/workflows/**"
env:
DEV_WORKFLOW_REPOSITORY: "rabbitmq/server-packages"
jobs:
trigger_alpha_build:
runs-on: ubuntu-latest
steps:

Check failure on line 16 in .github/workflows/release-4.0.x-alphas.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/release-4.0.x-alphas.yaml

Invalid workflow file

You have an error in your yaml syntax on line 16
- name: Trigger a 4.0.x alpha release build in ${{ env.DEV_WORKFLOW_REPOSITORY }}
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.RABBITMQCI_BOT_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ env.DEV_WORKFLOW_REPOSITORY }}/dispatches \
-d '{ "event_type": "new_4.0.x_alpha", "client_payload": {"release_repository": "${{ env.DEV_WORKFLOW_REPOSITORY }}", "release_description": "Commit: https://github.com/rabbitmq/rabbitmq-server/commit/${{ github.sha }}, pushed at: ${{ github.event.repository.pushed_at }}", "prerelease": true, "prerelease_kind": "alpha", "release_title": "RabbitMQ ${{ vars.SERVER_41_NEXT_PATCH_VERSION }}-alpha.${{ github.sha }} (from ${{ github.event.repository.pushed_at }})", "base_version": "${{ vars.SERVER_41_NEXT_PATCH_VERSION }}" }}'