Skip to content

Commit df7fac0

Browse files
Alpha workflows: fixes
1 parent 07b694f commit df7fac0

File tree

2 files changed

+11
-18
lines changed

2 files changed

+11
-18
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
env:
1212
DEV_WORKFLOW_REPOSITORY: "rabbitmq/server-packages"
1313
jobs:
14-
compute_prerelease_data:
14+
trigger_alpha_build:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Compute prerelease identifier from commit SHA
@@ -20,9 +20,6 @@ jobs:
2020
run: echo "PRERELEASE_TIMESTAMP=`date --rfc-3339=seconds`" >> $GITHUB_ENV
2121
- name: Compute UNIX release timestamp
2222
run: echo "PRERELEASE_UNIX_TIMESTAMP=`date +%s`" >> $GITHUB_ENV
23-
trigger_alpha_build:
24-
runs-on: ubuntu-latest
25-
steps:
2623
- name: Trigger a 4.0.x alpha release build in ${{ env.DEV_WORKFLOW_REPOSITORY }}
2724
run: |
2825
curl -L \

.github/workflows/release-4.1.x-alphas.yaml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
env:
1313
DEV_WORKFLOW_REPOSITORY: "rabbitmq/server-packages"
1414
jobs:
15-
compute_prerelease_data:
15+
trigger_alpha_build:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Compute prerelease identifier from commit SHA
@@ -21,16 +21,12 @@ jobs:
2121
run: echo "PRERELEASE_TIMESTAMP=`date --rfc-3339=seconds`" >> $GITHUB_ENV
2222
- name: Compute UNIX release timestamp
2323
run: echo "PRERELEASE_UNIX_TIMESTAMP=`date +%s`" >> $GITHUB_ENV
24-
trigger_alpha_build:
25-
runs-on: ubuntu-latest
26-
needs: [compute_prerelease_data]
27-
steps:
28-
- name: Trigger a 4.1.x alpha release build in ${{ env.DEV_WORKFLOW_REPOSITORY }}
29-
run: |
30-
curl -L \
31-
-X POST \
32-
-H "Accept: application/vnd.github+json" \
33-
-H "Authorization: Bearer ${{ secrets.RABBITMQCI_BOT_TOKEN }}" \
34-
-H "X-GitHub-Api-Version: 2022-11-28" \
35-
https://api.github.com/repos/${{ env.DEV_WORKFLOW_REPOSITORY }}/dispatches \
36-
-d '{ "event_type": "new_4.1.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", "prerelease_identifier": "${{ env.PRERELEASE_IDENTIFIER }}", "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 }}" }}'
24+
- name: Trigger a 4.1.x alpha release build in ${{ env.DEV_WORKFLOW_REPOSITORY }}
25+
run: |
26+
curl -L \
27+
-X POST \
28+
-H "Accept: application/vnd.github+json" \
29+
-H "Authorization: Bearer ${{ secrets.RABBITMQCI_BOT_TOKEN }}" \
30+
-H "X-GitHub-Api-Version: 2022-11-28" \
31+
https://api.github.com/repos/${{ env.DEV_WORKFLOW_REPOSITORY }}/dispatches \
32+
-d '{ "event_type": "new_4.1.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", "prerelease_identifier": "${{ env.PRERELEASE_IDENTIFIER }}", "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 }}" }}'

0 commit comments

Comments
 (0)