Skip to content

Commit

Permalink
Update gh-pr-create.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored Apr 17, 2024
1 parent c141d92 commit 4a3bf05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/gh-pr-create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a3bf05

Please sign in to comment.