From 1527ac01051ba7cc741e5f3b9ddfedd0a88716ed Mon Sep 17 00:00:00 2001 From: theoware <59124958+theoware@users.noreply.github.com> Date: Wed, 6 Jul 2022 12:13:01 +0000 Subject: [PATCH] Calculate date Former-commit-id: 12a04469b51404b3de81c140cfa7d9d34fd53858 --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6b828e1..645d564 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,9 @@ jobs: shell: bash - name: Current Date id: date - run: echo "::set-output name=DATE::$(date +'%m-%d')" + run: | + echo "::set-output name=DATE::$(date +'%m-%d')" + echo "::set-output name=YYYY::$(date +'%4Y')" - name: Upload release uses: svenstaro/upload-release-action@v2 with: @@ -27,5 +29,5 @@ jobs: file: ${{ steps.get_output_name.outputs.OUTPUT }} asset_name: ${{ steps.get_output_name.outputs.OUTPUT }} release_name: ${{ steps.get_output_name.outputs.OUTPUT }} - tag: 2022-${{ steps.get_output_name.outputs.VERSION }}-${{ steps.date.outputs.DATE }} + tag: ${{ steps.date.outputs.YYYY }}-${{ steps.get_output_name.outputs.VERSION }}-${{ steps.date.outputs.DATE }} overwrite: true