Skip to content

Commit aed5001

Browse files
committed
fix workflow
remove duplicate check
1 parent aa7e7f9 commit aed5001

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,18 @@ jobs:
3636
GH_TOKEN: ${{ secrets.EXT_GITHUB }}
3737
repo_name: "${{ github.event.repository.name }}"
3838
tag: "${{ github.ref_name }}"
39-
branch: "update-${{ github.event.repository.name }}"
39+
branch: "update-${{ github.event.repository.name }}-${{ github.ref_name }}"
4040
title: "[UPDATE] ${{ github.event.repository.name }} to ${{ github.ref_name }}"
4141
body: "https://github.com/lnbits/${{ github.event.repository.name }}/releases/${{ github.ref_name }}"
4242
archive: "https://github.com/lnbits/${{ github.event.repository.name }}/archive/refs/tags/${{ github.ref_name }}.zip"
4343
run: |
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-
5047
sh util.sh update_extension $repo_name $tag
5148
5249
git add -A
5350
git commit -am "$title"
5451
git push origin $branch
5552
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
53+
gh pr create --title "$title" --body "$body" --repo lnbits/lnbits-extensions

0 commit comments

Comments
 (0)