Skip to content

Commit 440de46

Browse files
4.1.x alpha release workflow: WIP
1 parent 6d8ea93 commit 440de46

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
trigger_alpha_build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: Trigger a 4.0.x alpha release build in ${{ env.DEV_WORKFLOW_REPOSITORY }}
17+
- name: Trigger an alpha release build in ${{ env.DEV_WORKFLOW_REPOSITORY }}
1818
run: |
1919
curl -L \
2020
-X POST \
2121
-H "Accept: application/vnd.github+json" \
2222
-H "Authorization: Bearer ${{ secrets.RABBITMQCI_BOT_TOKEN }}" \
2323
-H "X-GitHub-Api-Version: 2022-11-28" \
2424
https://api.github.com/repos/${{ env.DEV_WORKFLOW_REPOSITORY }}/dispatches \
25-
-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", "prerelease_identifier": "${{ env.PRERELEASE_IDENTIFIER }}", "release_title": "RabbitMQ ${{ vars.SERVER_41_NEXT_PATCH_VERSION }}-alpha.${{ env.PRERELEASE_IDENTIFIER }} (${{ github.event.repository.pushed_at }})", "base_version": "${{ vars.SERVER_41_NEXT_PATCH_VERSION }}" }}'
25+
-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", "prerelease_identifier": "${{ env.PRERELEASE_IDENTIFIER }}", "release_title": "RabbitMQ ${{ vars.SERVER_40_NEXT_PATCH_VERSION }}-alpha.${{ env.PRERELEASE_IDENTIFIER }} (${{ env.PRERELEASE_TIMESTAMP }})", "base_version": "${{ vars.SERVER_40_NEXT_PATCH_VERSION }}", "release_timestamp": "${{ env.PRERELEASE_TIMESTAMP }}", "release_unix_timestamp": "${{ env.PRERELEASE_UNIX_TIMESTAMP }}" }}'

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ jobs:
1414
trigger_alpha_build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: Trigger a 4.1.x alpha release build in ${{ env.DEV_WORKFLOW_REPOSITORY }}
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/${{ env.DEV_WORKFLOW_REPOSITORY }}/dispatches \
25-
-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.${{ env.PRERELEASE_IDENTIFIER }} (${{ github.event.repository.pushed_at }})", "base_version": "${{ vars.SERVER_41_NEXT_PATCH_VERSION }}" }}'
17+
- name: Get current UNIX timestamp
18+
id: timestamp
19+
uses: release-kit/unix-timestamp@v1
20+
- name: Trigger a 4.1.x alpha release build in ${{ env.DEV_WORKFLOW_REPOSITORY }}
21+
run: |
22+
curl -L \
23+
-X POST \
24+
-H "Accept: application/vnd.github+json" \
25+
-H "Authorization: Bearer ${{ secrets.RABBITMQCI_BOT_TOKEN }}" \
26+
-H "X-GitHub-Api-Version: 2022-11-28" \
27+
https://api.github.com/repos/${{ env.DEV_WORKFLOW_REPOSITORY }}/dispatches \
28+
-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", "release_title": "RabbitMQ ${{ vars.SERVER_41_NEXT_PATCH_VERSION }}-alpha.${{ github.sha }} from ${{ steps.timestamp.outputs.timestamp }} (${{ github.event.repository.pushed_at }})", "base_version": "${{ vars.SERVER_41_NEXT_PATCH_VERSION }}" }}'

0 commit comments

Comments
 (0)