diff --git a/.github/workflows/apps.release.yaml b/.github/workflows/apps.release.yaml index 089f49af835..671378b4f95 100644 --- a/.github/workflows/apps.release.yaml +++ b/.github/workflows/apps.release.yaml @@ -20,6 +20,13 @@ jobs: with: fetch-depth: 100 token: ${{ secrets.BOT_TOKEN }} + - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3 + name: Checkout + with: + fetch-depth: 1 + ref: gh-pages + token: ${{ secrets.BOT_TOKEN }} + path: .cr-index - name: Checkout uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3 diff --git a/charts/dependency/mongodb/Chart.yaml b/charts/dependency/mongodb/Chart.yaml index 7b70e1ea1ad..45c634f5616 100644 --- a/charts/dependency/mongodb/Chart.yaml +++ b/charts/dependency/mongodb/Chart.yaml @@ -23,7 +23,7 @@ sources: - https://github.com/bitnami/bitnami-docker-mongodb - https://www.mongodb.com type: application -version: 0.0.7 +version: 0.0.8 annotations: truecharts.org/catagories: | - database diff --git a/tools/build-release.sh b/tools/build-release.sh index 4042a39b1e6..4e8640b2001 100755 --- a/tools/build-release.sh +++ b/tools/build-release.sh @@ -64,6 +64,7 @@ main() { gen_dh_cat release_charts update_index + upload_index fi validate_catalog upload_catalog @@ -728,7 +729,7 @@ release_charts() { export -f release_charts update_index() { - local args=(-o "$owner" -r "$repo" -c "$charts_repo_url --push") + local args=(-o "$owner" -r "$repo" -c "$charts_repo_url" if [[ -n "$config" ]]; then args+=(--config "$config") fi @@ -740,4 +741,16 @@ update_index() { } export -f update_index +upload_index() { + cd .cr-index + git config user.name "TrueCharts-Bot" + git config user.email "bot@truecharts.org" + git add --all + git commit -sm "Commit released Helm Chart and docs for TrueCharts" || exit 0 + git push + cd - + rm .cr-index +} +export -f upload_index + main "$@"