diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index acef0ba..91a0dfb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,14 +59,15 @@ jobs: run: | git config user.name "prs" git config user.email "" - git checkout -b update-package-version + $branch-name = "update-package-version-$prevision" + git checkout -b $branch-name git add . git commit -m "Update revision number to $new_package_version" - git push origin update-package-version + git push origin $branch-name - name: Merge Temporary Branch env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh pr create --title "Update revision number" --body "Automated update of PackageVersion" --base main --head update-package-version + gh pr create --title "Update revision number" --body "Automated update of PackageVersion" --base main --head $branch-name gh pr merge --merge --auto --delete-branch