From f238723287ce3b9b9b255b811a65bd4ed6cc11e6 Mon Sep 17 00:00:00 2001 From: Guillem Gari Date: Fri, 26 Jul 2024 17:40:53 +0200 Subject: [PATCH] try with verified commits --- .github/workflows/helm-doc.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/helm-doc.yaml b/.github/workflows/helm-doc.yaml index 72d89c0..fb940a6 100644 --- a/.github/workflows/helm-doc.yaml +++ b/.github/workflows/helm-doc.yaml @@ -33,9 +33,7 @@ jobs: - run: | git add . if ! git diff --cached --quiet; then - echo "FILES_TO_COMMIT=$(git ls-files --deleted --modified --added --others -)" >> "$GITHUB_ENV" - echo "GIT_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_ENV" + echo "FILES_TO_COMMIT=$(git diff --name-only --cached)" >> "$GITHUB_ENV" # git commit -m "Automated chart README.md update" # git push # else @@ -43,11 +41,11 @@ jobs: fi - name: Commit file uses: chromeq/commit@v2.x - if: ${{ env.FILES_TO_COMMIT != "" }} + if: ${{ env.FILES_TO_COMMIT != '' }} with: files: ${{ env.FILES_TO_COMMIT }} commit-message: Automated chart README.md update - ref: ${{ env.GIT_BRANCH }} + ref: ${{ github.ref }} # # Commit all changed files back to the repository # - uses: stefanzweifel/git-auto-commit-action@v5 # with: