Skip to content

Commit 2a872e0

Browse files
committed
revert fix workflow
1 parent aed5001 commit 2a872e0

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,16 @@ jobs:
4444
cd lnbits-extensions
4545
git checkout -b $branch
4646
47+
# if there is another open PR
48+
git pull origin $branch || echo "branch does not exist"
49+
4750
sh util.sh update_extension $repo_name $tag
4851
4952
git add -A
5053
git commit -am "$title"
5154
git push origin $branch
5255
53-
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

Comments
 (0)