From 1fc914327fc6197ebe47a31ae6872b548737f78a Mon Sep 17 00:00:00 2001 From: potzplitz <127513690+potzplitz@users.noreply.github.com> Date: Sun, 3 Mar 2024 15:12:37 +0100 Subject: [PATCH] Update maven.yml --- .github/workflows/maven.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d18a1d4..df93a3a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -50,21 +50,19 @@ jobs: - name: Move Artifact run: mv staging/*.jar extracted-jar/ + - name: Set release tag + run: echo "::set-output name=RELEASE_TAG::$(date +'%Y%m%d%H%M%S')" + - name: Create Release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ env.RELEASE_TAG }} - release_name: Release ${{ env.RELEASE_TAG }} + tag_name: ${{ steps.set_release_tag.outputs.RELEASE_TAG }} + release_name: Release ${{ steps.set_release_tag.outputs.RELEASE_TAG }} draft: false prerelease: false - - - - name: Get current date and time - id: get_date - run: echo "::set-output name=date::$(date +'%Y%m%d%H%M%S')" - name: Upload Artifact as Release Asset uses: actions/upload-release-asset@v1