From 193d7d13bd8a2bd949ab51dadb2a2e2ba22df986 Mon Sep 17 00:00:00 2001 From: Jacob Hummer Date: Wed, 17 Apr 2024 10:53:03 -0500 Subject: [PATCH] Update gh-pr-create.yml --- .github/workflows/gh-pr-create.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pr-create.yml b/.github/workflows/gh-pr-create.yml index d5778bb..c9a4630 100644 --- a/.github/workflows/gh-pr-create.yml +++ b/.github/workflows/gh-pr-create.yml @@ -36,7 +36,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | branch="generate-$(jq -r '.version' package.json)" - if git rev-parse --verify "$branch"; then + if ! git rev-parse --verify "$branch"; then git checkout -b "$branch" git add -A && git commit -m 'Automated changes' git push -u origin "$branch"