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 27abd05
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/resume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,22 @@ 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")
run_url="https://github.com/{{ github.repository }}/actions/runs/{{ github.run_id }}"
pr=$(gh pr create --title "Update resume.pdf" --body "Automatically generated by GitHub Actions in:\n\n$run_url")
echo pr=$pr >>$GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}

0 comments on commit 27abd05

Please sign in to comment.