Skip to content

Commit 9ca6d78

Browse files
4.1.x alpha workflow WIP
1 parent 0de62ce commit 9ca6d78

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/4.1.x-alpha-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
release_repository: "rabbitmq/server-packages"
1818
release_title: ${{ github.event.client_payload.release_title }}
1919
release_description: ${{ github.event.client_payload.release_description }}
20+
release_timestamp: ${{ github.event.client_payload.release_timestamp }}
21+
release_unix_timestamp: ${{ github.event.client_payload.release_unix_timestamp }}
2022
secrets: inherit
2123
retain_latest_n_alphas:
2224
needs: [release]

.github/workflows/reusable-release-workflow.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ on:
3838
description: "Release description (notes)"
3939
required: false
4040
default: "A development build of open source RabbitMQ"
41+
release_timestamp:
42+
type: string
43+
description: "Human-readable release timestamp (date and time)"
44+
required: true
45+
release_unix_timestamp:
46+
type: string
47+
description: "UNIX timestamp of the release"
48+
required: true
4149

4250

4351
env:
@@ -346,7 +354,7 @@ jobs:
346354
with:
347355
token: ${{ secrets.MK_RELEASE_AUTOMATION_TOKEN }}
348356
repository: ${{ inputs.release_repository || env.RELEASE_REPOSITORY }}
349-
tag_name: v${{ env.FULL_VERSION }}
357+
tag_name: prerelease.alphas.${{ inputs.release_unix_timestamp }}.${{ inputs.prerelease_identifier }}
350358
name: ${{ inputs.release_title }}
351359
body: ${{ inputs.release_description }}
352360
prerelease: ${{ inputs.prerelease == true || inputs.prerelease == 'true' }}

0 commit comments

Comments
 (0)