Skip to content

Commit

Permalink
push resume to website
Browse files Browse the repository at this point in the history
  • Loading branch information
andreykaipov committed Mar 19, 2024
1 parent c922bfc commit 4fe4fc2
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/resume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,26 @@ jobs:
path: website
ref: main
token: ${{ steps.generate-token.outputs.token }}
- uses: actions/download-artifact@v4
with:
name: resume
path: website/static
- name: Create website PR
id: website-pr
run: |
mv resume.pdf website
cd website
git config --global user.name "cathy-cloud[bot]"
git config --global user.email "154095190+cathy-cloud[bot]@users.noreply.github.com"
git checkout -b auto/resume
git add .
git commit -m "${{ needs.build.outputs.build.outputs.msg }}"
git push origin auto/resume
pr=$(gh pr create --title "Update resume.pdf" --body "Automatically generated by GitHub Actions")
git commit -m "${{ needs.build.outputs.msg }}"
git push -fu origin auto/resume
pr_body='
Automatically generated by GitHub Actions:
https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
'
pr=$(gh pr create --title "Update resume.pdf" --body "$body")
echo pr=$pr >>$GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}

0 comments on commit 4fe4fc2

Please sign in to comment.