Skip to content

Commit

Permalink
fix: Fix the index.yaml commit on chart release
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlokshin-czi committed Nov 16, 2023
1 parent 60cd179 commit ec53d2c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/charts-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
release:
types: [published]

push:
branches:
- alokshin/fix-chart-index-yaml

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -88,14 +92,21 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "CZI Happy Helm Publisher Bot"
echo ------
cat ${INDEX_DIR}/index.yaml
echo ------
cd main
${HELM_CMD} package ${CHARTS_DIR} -d ${PACKAGE_DIR}
${GHCLI_CMD} release upload ${{ needs.check-chart-released.outputs.tag }} ${PACKAGE_DIR}/*.tgz --clobber
${HELM_CMD} repo index ${PACKAGE_DIR} --url ${CHART_DOWNLOAD_URL} --merge ${INDEX_DIR}/index.yaml
echo ------
cat ${INDEX_DIR}/index.yaml
echo ------
cd ../chart-repo
git add -A
git commit -m "chore: publish charts from ${{ github.repository }} ${{ needs.check-chart-released.outputs.tag }}"
git commit index.yaml -m "chore: publish charts from ${{ github.repository }} ${{ needs.check-chart-released.outputs.tag }}"
git push
env:
GH_CRED: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ec53d2c

Please sign in to comment.