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 7797e5b
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/resume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,31 @@ 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 checkout -b auto/resume
git config --global user.name "cathy-cloud[bot]"
git config --global user.email "154095190+cathy-cloud[bot]@users.noreply.github.com"
branch=auto/resume
git checkout -b "$branch"
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")
echo pr=$pr >>$GITHUB_OUTPUT
git commit -m "${{ needs.build.outputs.msg }}"
# git push -fu origin auto/resume
if gh pr edit "${{ env.branch }}" -b "${{ env.body }}" -t "${{ env.title}}"; then
gh pr reopen "${{ env.branch }}"
else
gh pr create --fill -B main -H "${{ env.branch }}"
fi
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
branch: auto/resume
title: Update resume.pdf
body: |
Automatically generated by GitHub Actions:
https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

0 comments on commit 7797e5b

Please sign in to comment.