Skip to content

Release Charts

Release Charts #75

Workflow file for this run

name: Release Charts
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Checkout cosmo
uses: actions/checkout@v3
with:
repository: cosmo-workspace/cosmo
path: cosmo
- name: mv cosmo/charts
run: |
rm -rf charts/cosmo
mv cosmo/charts/* charts/
rm -rf cosmo
pwd && ls -l
- name: Commit updates
uses: EndBug/add-and-commit@v7
with:
branch: main
message: "update charts"
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.4.1
- name: Add repositories
run: |
for dir in $(ls -d charts/*/); do
helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
done
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.4.0
with:
charts_dir: charts
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_SKIP_EXISTING: true