Skip to content

Commit 1d9dc3b

Browse files
Require specifying the release branch to release from (#1)
1 parent f0cdcda commit 1d9dc3b

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: Release Charts
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
spiceai_branch:
7+
description: 'Release branch in spiceai/spiceai'
8+
required: true
9+
default: 'release/1.X'
10+
type: string
511

612
jobs:
713
release:
@@ -22,6 +28,7 @@ jobs:
2228
with:
2329
path: spiceai
2430
repository: spiceai/spiceai
31+
ref: ${{ github.event.inputs.spiceai_branch }}
2532
fetch-depth: 0
2633

2734
- name: Configure Git
@@ -35,7 +42,7 @@ jobs:
3542

3643
- name: Install chart-releaser
3744
uses: ./helm-charts/.github/actions/chart-releaser-installer
38-
45+
3946
- name: Release Charts
4047
working-directory: helm-charts
4148
env:
@@ -44,4 +51,4 @@ jobs:
4451
cr version
4552
cr package ../spiceai/deploy/chart
4653
cr upload --owner spiceai --git-repo helm-charts --token $CR_TOKEN --push --skip-existing
47-
cr index --owner spiceai --git-repo helm-charts --index-path . --token $CR_TOKEN --push
54+
cr index --owner spiceai --git-repo helm-charts --index-path . --token $CR_TOKEN --push

0 commit comments

Comments
 (0)