From 2c19d53530dcc60ce418ab8606d5afaee47d0bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20=C4=8Cech=C3=A1=C4=8Dek?= Date: Tue, 25 Oct 2022 04:33:21 +0200 Subject: [PATCH] Used script to create an automatically gened tag --- .github/workflows/main-autorelease.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main-autorelease.yml b/.github/workflows/main-autorelease.yml index 77f28b2896..3879a31745 100644 --- a/.github/workflows/main-autorelease.yml +++ b/.github/workflows/main-autorelease.yml @@ -1,7 +1,7 @@ # This workflow will build a Java project with Gradle # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle -name: Java CI with Gradle +name: Java CI with AutoRelease on: [push, pull_request] @@ -14,6 +14,10 @@ jobs: uses: actions/setup-java@v1 with: java-version: 11 + - name: Generate release tag + id: tag + run: | + echo "::set-output name=release_tag::Autobuild_$(date +"%d.%m.%Y_%H-%M")" - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle and upload to Releases @@ -21,4 +25,4 @@ jobs: GH_TOKEN: ${{ secrets.REPO_TOKEN }} run: | ./gradlew build - gh release create latest proxy/build/libs/*-all.jar --generate-notes --prerelease + gh release create ${{ steps.tag.outputs.release_tag }} proxy/build/libs/*-all.jar --generate-notes