From 3eea22ad506cefbcc9288e05e251ddb458ee939e Mon Sep 17 00:00:00 2001 From: gilesb Date: Mon, 23 Oct 2023 22:16:31 +0100 Subject: [PATCH] .... --- .gitea/workflows/develop -> build.yml | 6 ------ .gitea/workflows/pr-closed.yml | 5 ++++- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/develop -> build.yml b/.gitea/workflows/develop -> build.yml index e0c4d85..0289f02 100644 --- a/.gitea/workflows/develop -> build.yml +++ b/.gitea/workflows/develop -> build.yml @@ -20,12 +20,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.BOT_TOKEN }} - - name: get tag - run: | - ../tea r ls -o=simple - version="$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1)" - echo $version - echo $version | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g' - uses: http://sigyl.com:3000/actions/setup-node@v3 with: node-version: '20' diff --git a/.gitea/workflows/pr-closed.yml b/.gitea/workflows/pr-closed.yml index a79eb1f..bce2525 100644 --- a/.gitea/workflows/pr-closed.yml +++ b/.gitea/workflows/pr-closed.yml @@ -21,9 +21,12 @@ jobs: - uses: http://sigyl.com:3000/actions/checkout@v3.5.4 with: token: ${{ secrets.BOT_TOKEN }} - - name: tag + - name: get tag run: | ../tea r ls -o=simple + version="$(../tea r ls -o=simple | head -n 1 | tr " " "\n" | head -n 1)" + version=$version | 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 }}