Skip to content

Commit

Permalink
make branch unique per workflow run
Browse files Browse the repository at this point in the history
  • Loading branch information
andreykaipov committed Dec 17, 2024
1 parent 7b821a0 commit bbb884b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/resume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,18 @@ jobs:
cd website
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 checkout -b "${{ env.branch }}"
git add .
git commit -m "${{ needs.build.outputs.msg }}"
git push -fu origin auto/resume
git push -fu origin "${{ env.branch }}"
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
branch: auto/resume-${{ github.run_number }}
title: Update resume.pdf
body: |
Automatically generated by GitHub Actions:
Expand Down

0 comments on commit bbb884b

Please sign in to comment.