Skip to content

Release Charts

Release Charts #13

Workflow file for this run

name: Release Charts
on:
workflow_run:
workflows: [Lint and Test Charts]
types:
- completed
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Set up Helm
uses: azure/[email protected]
with:
version: v3.14.4
- name: Set up chart-testing
uses: helm/[email protected]
- name: Check changed charts
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Run chart-releaser
uses: helm/[email protected]
if: steps.list-changed.outputs.changed == 'true'
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"