We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aed5001 commit 2a872e0Copy full SHA for 2a872e0
1 file changed
.github/workflows/release.yml
@@ -44,10 +44,16 @@ jobs:
44
cd lnbits-extensions
45
git checkout -b $branch
46
47
+ # if there is another open PR
48
+ git pull origin $branch || echo "branch does not exist"
49
+
50
sh util.sh update_extension $repo_name $tag
51
52
git add -A
53
git commit -am "$title"
54
git push origin $branch
55
- gh pr create --title "$title" --body "$body" --repo lnbits/lnbits-extensions
56
+ # check if pr exists before creating it
57
+ gh config set pager cat
58
+ check=$(gh pr list -H $branch | wc -l)
59
+ test $check -ne 0 || gh pr create --title "$title" --body "$body" --repo lnbits/lnbits-extensions
0 commit comments