Skip to content

Commit

Permalink
fix: update Actions to push to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rosnovsky committed Nov 19, 2023
1 parent 553c7af commit 3d9dc60
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/generate-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
required: false
default: "Manual trigger"

permissions:
contents: write

jobs:
generate-pdf:
runs-on: ubuntu-latest
Expand All @@ -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

0 comments on commit 3d9dc60

Please sign in to comment.