From ff851093c3580dabd5af86034b49d0ed91517847 Mon Sep 17 00:00:00 2001 From: giles Date: Sat, 21 Oct 2023 22:32:20 +0100 Subject: [PATCH] here is a chnage to be made --- .gitea/workflows/convert-to-yml.yml | 4 +++- tea | Bin 2 files changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 tea diff --git a/.gitea/workflows/convert-to-yml.yml b/.gitea/workflows/convert-to-yml.yml index ba826bc..1dea413 100644 --- a/.gitea/workflows/convert-to-yml.yml +++ b/.gitea/workflows/convert-to-yml.yml @@ -38,4 +38,6 @@ jobs: curl https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-386 --output tea chmod +x ./tea ./tea login add -n=this --url=${{ github.server_url}} -t=${{ secrets.TEA_TOKEN }} - ./tea pr c --base=master --head=${{ env.PRODUCTION_BRANCH }} --description="development pull request" -t="WIP: ${{ github.event.head_commit.message }}" + if [[ $(./tea pr ls -f=base,head | grep "| master | ${{ env.PRODUCTION_BRANCH }} |" | head -c1 | wc -c) -eq 0 ]]; then + ./tea pr c --base=master --head=${{ env.PRODUCTION_BRANCH }} --description="development pull request" -t="WIP: ${{ github.event.head_commit.message }}" + fi diff --git a/tea b/tea old mode 100644 new mode 100755