From ad728d4169b1eb8857933594d693cc126e914b6d Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Wed, 5 Apr 2023 13:34:30 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9E.gitea/workflows/build.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 0fb7eb8..32fdd9e 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -46,12 +46,14 @@ jobs: echo - name: create release run: | + echo "Getting last Release Tag" VERSION=$(curl -X 'GET' 'https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases?page=1&limit=1' -H 'accept: application/json') VERSION=$(echo $VERSION | jq -r '.[0].tag_name' | awk -F. -v OFS=. '{$NF += 1 ; print}') + echo "Generate new Release" curl -X 'POST' \ 'https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: token ${{ secrets.RELEASE_TOKEN }}' \ - -d '{"body": "Automated Build","draft": true,"name": "Automated Release $VERSION","prerelease": true,"tag_name": "$VERSION",}' - + -d '{"body": "Automated Build","draft": true,"name": "Automated Release ABC","prerelease": true,"tag_name": "CBA",}' + echo "Uploading Build to new Release"