From 21470044e8423636d93b7f91586e3d6dbe032d10 Mon Sep 17 00:00:00 2001 From: gilesb Date: Mon, 23 Oct 2023 22:54:56 +0100 Subject: [PATCH] ........ --- .gitea/workflows/pr-closed.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/pr-closed.yml b/.gitea/workflows/pr-closed.yml index 25182f9..c920a76 100644 --- a/.gitea/workflows/pr-closed.yml +++ b/.gitea/workflows/pr-closed.yml @@ -24,10 +24,8 @@ jobs: - name: get tag run: | ../tea r ls -o=simple - version="$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1)" - newversion="$(version | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g')" - echo $newversion - ../tea r c --note="this isrelease ${newversion}" --tag=${newversion} --title=${newversion} --target=${{ github.sha }} + version="$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1 | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g')" + ../tea r c --note="this isrelease ${version}" --tag=${version} --title=${version} --target=${{ github.sha }} - name: delete develop branch id: delete_develop_branch run: git push origin --delete ${{ github.head_ref }}