mirror of
https://github.com/kemko/resume.git
synced 2026-01-01 15:55:47 +03:00
fix: update Actions to push to repo
This commit is contained in:
11
.github/workflows/generate-pdf.yml
vendored
11
.github/workflows/generate-pdf.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user