Skip to content

Commit 4fb989c

Browse files
Actions: try a using short commit SHA for alpha identifier
1 parent 313e042 commit 4fb989c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/alpha-build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ on:
44
push:
55
branches:
66
- "main"
7-
- "mk-actions-notify-server-trigger-packages-workflow"
87
paths:
98
- "deps/**"
10-
- ".github/workflows/**"
119

1210
jobs:
1311
trigger_alpha_build:
1412
runs-on: ubuntu-latest
1513
steps:
14+
- name: Set a short commit SHA
15+
run: echo "SHORT_SHA=`echo ${{ github.sha }} | cut -c1-8`" >> $GITHUB_ENV
1616
- name: Trigger an alpha build in rabbitmq/server-packages
1717
run: |
1818
curl -L \
@@ -21,4 +21,4 @@ jobs:
2121
-H "Authorization: Bearer ${{ secrets.RABBITMQCI_BOT_TOKEN }}" \
2222
-H "X-GitHub-Api-Version: 2022-11-28" \
2323
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"}}'
24+
-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"}}'

0 commit comments

Comments
 (0)