Skip to content

Commit 9eccdbe

Browse files
authored
Merge pull request #45 from redis/release_automation
Release automation
2 parents 8266c37 + cd75b13 commit 9eccdbe

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/build-n-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
inputs:
66
release_tag:
77
type: string
8+
channel:
9+
type: string
810

911
jobs:
1012
build-binary-package:
@@ -52,9 +54,7 @@ jobs:
5254
- macos-15 # macOS 15 arm64
5355
- macos-14-large # macOS 14 x86_64
5456
- macos-14 # macOS 14 arm64
55-
cask:
56-
- redis
57-
- redis-rc
57+
cask: ${{ inputs.channel == 'stable' && fromJSON('["redis", "redis-rc"]') || fromJSON('["redis-rc"]') }}
5858
runs-on: ${{ matrix.os_version }}
5959
steps:
6060
- name: Checkout code

.github/workflows/release_build_and_test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
release_type:
1414
description: 'Type of release to upload (public, internal)'
1515
required: true
16+
channel:
17+
description: 'Type of stability (stable, rc)'
18+
required: false
1619

1720
# UUID is used to help automation to identify workflow run in the list of workflow runs.
1821
run-name: "Release Build and Test${{ github.event.inputs.workflow_uuid && format(': {0}', github.event.inputs.workflow_uuid) || '' }}"
@@ -51,6 +54,7 @@ jobs:
5154
uses: ./.github/workflows/build-n-test.yml
5255
with:
5356
release_tag: ${{ github.event.inputs.release_tag }}
57+
channel: ${{ github.event.inputs.channel }}
5458
secrets: inherit
5559

5660
create-release-handle:

0 commit comments

Comments
 (0)