From f81778feebdeaa8f251ae7e26fe117a7567392d6 Mon Sep 17 00:00:00 2001 From: Ivan Gabriele Date: Wed, 14 Aug 2024 21:01:26 +0200 Subject: [PATCH] ci(github): restore stefanzweifel/git-auto-commit-action action in release workflow --- .github/workflows/release.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 40ec499..a6be536 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,10 +1,8 @@ name: Release - on: schedule: - cron: "0 0 * * *" workflow_dispatch: - jobs: update: runs-on: ubuntu-latest @@ -26,12 +24,11 @@ jobs: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} trust_level: ultimate - name: Add, Commit & Push - run: | - git config --global user.email "ivan.gabriele+github@protonmail.com" - git config --global user.name "Ivan Gabriele (Github)" - git add . - git commit -m "feat: update knowledge base" - git push + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "feat: update knowledge base index" + commit_user_email: ivan.gabriele+github@protonmail.com + commit_user_name: "Ivan Gabriele (Github)" - name: Create Release Tag id: tag run: echo "RELEASE_TAG=v$(date +'%Y.%m.%d')" >> $GITHUB_OUTPUT