diff --git a/.github/workflows/sync_wgcf.yml b/.github/workflows/sync_wgcf.yml index dbc37ef..7b0022d 100644 --- a/.github/workflows/sync_wgcf.yml +++ b/.github/workflows/sync_wgcf.yml @@ -47,11 +47,7 @@ jobs: fi - name: Upload to REPO + uses: stefanzweifel/git-auto-commit-action@v4 if: ${{ env.VERSION != '' }} - run: | - git config --global user.email "${{ env.EMAIL }}" - git config --global user.name "${{ env.USERNAME }}" - git add . - git commit -m "Sync WGCF to V${{ env.VERSION }} by Github Actions, $(date "+%Y/%m/%d %H:%M:%S")" - git push - + with: + commit_message: Sync WGCF to V${{ env.VERSION }} by Github Actions, $(date "+%Y/%m/%d %H:%M:%S")