diff --git a/.github/workflows/build-n-test.yml b/.github/workflows/build-n-test.yml index 90ebc68..672d7d7 100644 --- a/.github/workflows/build-n-test.yml +++ b/.github/workflows/build-n-test.yml @@ -5,6 +5,8 @@ on: inputs: release_tag: type: string + channel: + type: string jobs: build-binary-package: @@ -52,9 +54,7 @@ jobs: - macos-15 # macOS 15 arm64 - macos-14-large # macOS 14 x86_64 - macos-14 # macOS 14 arm64 - cask: - - redis - - redis-rc + cask: ${{ inputs.channel == 'stable' && fromJSON('["redis", "redis-rc"]') || fromJSON('["redis-rc"]') }} runs-on: ${{ matrix.os_version }} steps: - name: Checkout code diff --git a/.github/workflows/release_build_and_test.yml b/.github/workflows/release_build_and_test.yml index 89bdbc4..bc69f48 100644 --- a/.github/workflows/release_build_and_test.yml +++ b/.github/workflows/release_build_and_test.yml @@ -13,6 +13,9 @@ on: release_type: description: 'Type of release to upload (public, internal)' required: true + channel: + description: 'Type of stability (stable, rc)' + required: false # UUID is used to help automation to identify workflow run in the list of workflow runs. run-name: "Release Build and Test${{ github.event.inputs.workflow_uuid && format(': {0}', github.event.inputs.workflow_uuid) || '' }}" @@ -51,6 +54,7 @@ jobs: uses: ./.github/workflows/build-n-test.yml with: release_tag: ${{ github.event.inputs.release_tag }} + channel: ${{ github.event.inputs.channel }} secrets: inherit create-release-handle: