File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -36,24 +36,18 @@ jobs:
36
36
GH_TOKEN : ${{ secrets.EXT_GITHUB }}
37
37
repo_name : " ${{ github.event.repository.name }}"
38
38
tag : " ${{ github.ref_name }}"
39
- branch : " update-${{ github.event.repository.name }}"
39
+ branch : " update-${{ github.event.repository.name }}-${{ github.ref_name }} "
40
40
title : " [UPDATE] ${{ github.event.repository.name }} to ${{ github.ref_name }}"
41
41
body : " https://github.com/lnbits/${{ github.event.repository.name }}/releases/${{ github.ref_name }}"
42
42
archive : " https://github.com/lnbits/${{ github.event.repository.name }}/archive/refs/tags/${{ github.ref_name }}.zip"
43
43
run : |
44
44
cd lnbits-extensions
45
45
git checkout -b $branch
46
46
47
- # if there is another open PR
48
- git pull origin $branch || echo "branch does not exist"
49
-
50
47
sh util.sh update_extension $repo_name $tag
51
48
52
49
git add -A
53
50
git commit -am "$title"
54
51
git push origin $branch
55
52
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
You can’t perform that action at this time.
0 commit comments