diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6b828e1..a71172f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,8 +8,9 @@ jobs: with: distribution: "zulu" java-version: "17" + - name: Checkout + uses: actions/checkout@v3 - run: | - git clone "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" . ./build-module.sh - id: get_output_name run: | @@ -18,7 +19,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 +30,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