Actions: try a using short commit SHA for alpha identifier

This commit is contained in:
Michael Klishin 2024-11-03 22:52:07 -05:00 committed by Michael Klishin
parent 7ddd9d825a
commit 3cf326e64e
No known key found for this signature in database
GPG Key ID: FF4F6501646A9C9A
1 changed files with 3 additions and 3 deletions

View File

@ -4,15 +4,15 @@ on:
push:
branches:
- "main"
- "mk-actions-notify-server-trigger-packages-workflow"
paths:
- "deps/**"
- ".github/workflows/**"
jobs:
trigger_alpha_build:
runs-on: ubuntu-latest
steps:
- name: Set a short commit SHA
run: echo "SHORT_SHA=`echo ${{ github.sha }} | cut -c1-8`" >> $GITHUB_ENV
- name: Trigger an alpha build in rabbitmq/server-packages
run: |
curl -L \
@ -21,4 +21,4 @@ jobs:
-H "Authorization: Bearer ${{ secrets.RABBITMQCI_BOT_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/rabbitmq/server-packages/dispatches \
-d '{"event_type": "new_4.1.x_alpha", "client_payload": {"prerelease": true, "prerelease_kind": "alpha", "prerelease_identifier": "${{ github.ref }}", "base_version": "4.1.0"}}'
-d '{"event_type": "new_4.1.x_alpha", "client_payload": {"prerelease": true, "prerelease_kind": "alpha", "prerelease_identifier": "${{ env.SHORT_SHA }}", "base_version": "4.1.0"}}'