From 4a3bf05d3ceb261fc1d2df7692f9e63e25e17e27 Mon Sep 17 00:00:00 2001 From: Jacob Hummer Date: Wed, 17 Apr 2024 11:25:41 -0500 Subject: [PATCH] Update gh-pr-create.yml --- .github/workflows/gh-pr-create.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-pr-create.yml b/.github/workflows/gh-pr-create.yml index c9a4630..630f575 100644 --- a/.github/workflows/gh-pr-create.yml +++ b/.github/workflows/gh-pr-create.yml @@ -35,10 +35,11 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - branch="generate-$(jq -r '.version' package.json)" + version=$(jq -r '.version' package.json) + branch="generate-$version" if ! git rev-parse --verify "$branch"; then git checkout -b "$branch" - git add -A && git commit -m 'Automated changes' + git add -A && git commit -m "Generate v$version" git push -u origin "$branch" gh pr create --fill fi