From bbb884bbb6840beb267c44ab51117da91b855556 Mon Sep 17 00:00:00 2001 From: Andrey Kaipov Date: Mon, 16 Dec 2024 19:26:14 -0500 Subject: [PATCH] make branch unique per workflow run --- .github/workflows/resume.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/resume.yml b/.github/workflows/resume.yml index 441603a..e5db14e 100644 --- a/.github/workflows/resume.yml +++ b/.github/workflows/resume.yml @@ -76,11 +76,10 @@ 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 @@ -88,7 +87,7 @@ jobs: 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: