Skip to content

Commit

Permalink
CLOUDP-218696: Allow targeted helm chart releases
Browse files Browse the repository at this point in the history
  • Loading branch information
josvazg committed Dec 19, 2023
1 parent 8b94149 commit a99dfad
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
# This is a basic workflow to help you get started with Actions

name: Release Charts

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches:
- main
paths-ignore:
- '.github/**'
workflow_dispatch:
inputs:
skip-deps:
description: "skip-dependency releases"
type: boolean
default: false
required: false
target:
description: "target chart to release"
type: string
default: ""
required: false

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -44,6 +46,7 @@ jobs:
- name: Helm Chart Dependency Releaser
uses: ./.github/actions/releaser
if: !github.event.inputs.skip-deps
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
Expand All @@ -62,3 +65,4 @@ jobs:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
charts_repo_url: https://mongodb.github.io/helm-charts
target: ${{ github.event.inputs.target }}

0 comments on commit a99dfad

Please sign in to comment.