From 7cf3f40458924d9818ce0aedd49102af9d332782 Mon Sep 17 00:00:00 2001 From: Ludwig Lierhammer Date: Wed, 27 Nov 2024 12:40:23 +0100 Subject: [PATCH] use auto-commit --- .github/workflows/latex.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/latex.yml b/.github/workflows/latex.yml index 1648915..3389a44 100755 --- a/.github/workflows/latex.yml +++ b/.github/workflows/latex.yml @@ -26,10 +26,11 @@ jobs: pre_compile: cd mug_document_src latexmk_use_lualatex: true - name: Commit and push PDF - run: | - git config --global user.name "GitHub Actions" - git config --global user.email "actions@github.com" - #git pull origin ${{ github.head_ref || github.ref_name }} - git add mug_document_src/main.pdf - git commit -m "Update current version of the Marine User Guide" || echo "No changes to commit" - git push origin HEAD:${{ github.head_ref || github.ref_name }} + -uses: stefanzweifel/git-auto-commit-action@v5 + # run: | + # git config --global user.name "GitHub Actions" + # git config --global user.email "actions@github.com" + # #git pull origin ${{ github.head_ref || github.ref_name }} + # git add mug_document_src/main.pdf + # git commit -m "Update current version of the Marine User Guide" || echo "No changes to commit" + # git push origin HEAD:${{ github.head_ref || github.ref_name }} \ No newline at end of file