Skip to content

Commit

Permalink
Simplify 4.1.x and 4.0.x alpha release workflows
Browse files Browse the repository at this point in the history
timestamping is now performed in rabbitmq/server-packages
  • Loading branch information
michaelklishin committed Nov 8, 2024
1 parent d309ec9 commit 8b55447
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/release-4.0.x-alphas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ jobs:
trigger_alpha_build:
runs-on: ubuntu-latest
steps:
- name: Compute prerelease identifier from commit SHA
run: echo "PRERELEASE_IDENTIFIER=`echo ${{ github.sha }} | cut -c1-8`" >> $GITHUB_ENV
- name: Compute human-readable release timestamp
run: echo "PRERELEASE_TIMESTAMP=`date --rfc-3339=seconds`" >> $GITHUB_ENV
- name: Compute UNIX release timestamp
run: echo "PRERELEASE_UNIX_TIMESTAMP=`date +%s`" >> $GITHUB_ENV
- name: Trigger a 4.0.x alpha release build in ${{ env.DEV_WORKFLOW_REPOSITORY }}
run: |
curl -L \
Expand All @@ -28,4 +22,4 @@ jobs:
-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 }}, build was triggered at: ${{ env.PRERELEASE_TIMESTAMP }}", "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 }}" }}'
-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.updated_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.updated_at }})", "base_version": "${{ vars.SERVER_41_NEXT_PATCH_VERSION }}" }}'
8 changes: 1 addition & 7 deletions .github/workflows/release-4.1.x-alphas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ jobs:
trigger_alpha_build:
runs-on: ubuntu-latest
steps:
- name: Compute prerelease identifier from commit SHA
run: echo "PRERELEASE_IDENTIFIER=`echo ${{ github.sha }} | cut -c1-8`" >> $GITHUB_ENV
- name: Compute human-readable release timestamp
run: echo "PRERELEASE_TIMESTAMP=`date --rfc-3339=seconds`" >> $GITHUB_ENV
- name: Compute UNIX release timestamp
run: echo "PRERELEASE_UNIX_TIMESTAMP=`date +%s`" >> $GITHUB_ENV
- name: Trigger a 4.1.x alpha release build in ${{ env.DEV_WORKFLOW_REPOSITORY }}
run: |
curl -L \
Expand All @@ -28,4 +22,4 @@ jobs:
-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.1.x_alpha", "client_payload": {"release_repository": "${{ env.DEV_WORKFLOW_REPOSITORY }}", "release_description": "Commit: https://github.com/rabbitmq/rabbitmq-server/commit/${{ github.sha }}, build was triggered at: ${{ env.PRERELEASE_TIMESTAMP }}", "prerelease": true, "prerelease_kind": "alpha", "prerelease_identifier": "${{ env.PRERELEASE_IDENTIFIER }}", "release_title": "RabbitMQ ${{ vars.SERVER_41_NEXT_PATCH_VERSION }}-alpha.${{ env.PRERELEASE_IDENTIFIER }} (${{ env.PRERELEASE_TIMESTAMP }})", "base_version": "${{ vars.SERVER_41_NEXT_PATCH_VERSION }}", "release_timestamp": "${{ env.PRERELEASE_TIMESTAMP }}", "release_unix_timestamp": "${{ env.PRERELEASE_UNIX_TIMESTAMP }}" }}'
-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.updated_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.updated_at }})", "base_version": "${{ vars.SERVER_41_NEXT_PATCH_VERSION }}" }}'

0 comments on commit 8b55447

Please sign in to comment.