diff --git a/.github/workflows/helm-release.yml b/.github/workflows/helm-release.yml index cad37b5..6c4c70c 100644 --- a/.github/workflows/helm-release.yml +++ b/.github/workflows/helm-release.yml @@ -18,8 +18,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 - with: - fetch-depth: 0 - name: Configure Git run: | diff --git a/.github/workflows/update-chart-version.yml b/.github/workflows/update-chart-version.yml index 406be20..6952351 100644 --- a/.github/workflows/update-chart-version.yml +++ b/.github/workflows/update-chart-version.yml @@ -26,7 +26,7 @@ jobs: echo "match=false" >> $GITHUB_ENV fi - - name: Update appVersion in Chart.yaml + - name: Update version in Chart.yaml if: env.match == 'true' run: | @@ -39,5 +39,10 @@ jobs: git config user.name "GitHub Actions" git config user.email "actions@github.com" git add "${CHART_FILE}" - git commit -m "Update appVersion to ${RELEASE_TAG}" - git push origin HEAD:main + git commit -m "Update version to ${RELEASE_TAG}" + + - name: Push changes + if: env.match == 'true' + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }}