From 3d9dc6097673cfa6e1e6ddb0110715ee5abf3ea6 Mon Sep 17 00:00:00 2001 From: Art Rosnovsky Date: Sat, 18 Nov 2023 21:05:37 -0800 Subject: [PATCH] fix: update Actions to push to repo --- .github/workflows/generate-pdf.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/generate-pdf.yml b/.github/workflows/generate-pdf.yml index 39d1a24..579e885 100644 --- a/.github/workflows/generate-pdf.yml +++ b/.github/workflows/generate-pdf.yml @@ -11,6 +11,9 @@ on: required: false default: "Manual trigger" +permissions: + contents: write + jobs: generate-pdf: runs-on: ubuntu-latest @@ -34,8 +37,8 @@ jobs: - name: Commit PDF run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" + git config --global user.name "${{ github.actor }}" + git config --global user.email "${{ github.actor}}@users.noreply.github.com" git add output/art_rosnovsky_software_engineer.pdf - git commit -m "Update resume PDF" -a || echo "No changes to commit" - git push --force https://${{ secrets.GITHUB_TOKEN }}@github.com/rosnovsky/resume.git main + git commit -m "${{ github.event.head_commit.message }}" + git push