From aed50012a28987039d0c060f5436dde8c9942235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Sat, 23 Sep 2023 19:33:52 +0200 Subject: [PATCH] fix workflow remove duplicate check --- .github/workflows/release.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d042b65..30808d1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: GH_TOKEN: ${{ secrets.EXT_GITHUB }} repo_name: "${{ github.event.repository.name }}" tag: "${{ github.ref_name }}" - branch: "update-${{ github.event.repository.name }}" + branch: "update-${{ github.event.repository.name }}-${{ github.ref_name }}" title: "[UPDATE] ${{ github.event.repository.name }} to ${{ github.ref_name }}" body: "https://github.com/lnbits/${{ github.event.repository.name }}/releases/${{ github.ref_name }}" archive: "https://github.com/lnbits/${{ github.event.repository.name }}/archive/refs/tags/${{ github.ref_name }}.zip" @@ -44,16 +44,10 @@ jobs: cd lnbits-extensions git checkout -b $branch - # if there is another open PR - git pull origin $branch || echo "branch does not exist" - sh util.sh update_extension $repo_name $tag git add -A git commit -am "$title" git push origin $branch - # check if pr exists before creating it - gh config set pager cat - check=$(gh pr list -H $branch | wc -l) - test $check -ne 0 || gh pr create --title "$title" --body "$body" --repo lnbits/lnbits-extensions + gh pr create --title "$title" --body "$body" --repo lnbits/lnbits-extensions