Skip to content

Release Charts

Release Charts #241

Workflow file for this run

name: Release Charts

Check failure on line 1 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Release Charts

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml: Unexpected tag '!github.event.inputs.skip-deps'
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
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.13.1
- name: Add Helm repos
run: |
helm repo add mongodb https://mongodb.github.io/helm-charts
- name: Allow script
run: |
chmod +x ./.github/actions/releaser/cr.sh
- name: Helm Chart Dependency Releaser
uses: ./.github/actions/releaser
if: !github.event.inputs.skip-deps
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
charts_repo_url: https://mongodb.github.io/helm-charts
target: |
atlas-operator-crds
community-operator-crds
- name: Get latest charts from repo
run: |
helm repo update
- name: Helm Chart Releaser
uses: ./.github/actions/releaser
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
charts_repo_url: https://mongodb.github.io/helm-charts
target: ${{ github.event.inputs.target }}