Skip to content

Commit 36eaefc

Browse files
committed
CLOUDP-218696: Allow targeted helm chart releases
Signed-off-by: Jose Vazquez <[email protected]>
1 parent 8b94149 commit 36eaefc

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
1-
# This is a basic workflow to help you get started with Actions
2-
31
name: Release Charts
42

5-
# Controls when the action will run. Triggers the workflow on push or pull request
6-
# events but only for the main branch
73
on:
84
push:
95
branches:
106
- main
117
paths-ignore:
128
- '.github/**'
139
workflow_dispatch:
10+
inputs:
11+
target:
12+
description: "target chart to release"
13+
type: string
14+
default: ""
15+
required: false
1416

15-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1617
jobs:
17-
# This workflow contains a single job called "build"
1818
build:
19-
# The type of runner that the job will run on
2019
runs-on: ubuntu-latest
21-
22-
# Steps represent a sequence of tasks that will be executed as part of the job
2320
steps:
2421
- name: Checkout
2522
uses: actions/checkout@v4
@@ -44,6 +41,7 @@ jobs:
4441
4542
- name: Helm Chart Dependency Releaser
4643
uses: ./.github/actions/releaser
44+
if: github.event.inputs.target == ''
4745
env:
4846
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
4947
with:
@@ -62,3 +60,4 @@ jobs:
6260
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
6361
with:
6462
charts_repo_url: https://mongodb.github.io/helm-charts
63+
target: ${{ github.event.inputs.target }}

0 commit comments

Comments
 (0)