diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 1dbed6b..7298307 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -12,7 +12,10 @@ jobs: steps: - name: Get build version id: date - run: echo "::set-output name=date::$(date +'%Y%m%d')${{github.run_number}}" + run: | + echo "::set-output name=date::$(date +'%Y%m%d')${{github.run_number}}" + env: + VERSION: ${{ steps.date.outputs.date }} - name: Checkout Code uses: actions/checkout@v3 - name: Setup .NET diff --git a/src/ZonyLrcTools.Cli/publish.sh b/src/ZonyLrcTools.Cli/publish.sh index 26dcfa1..892e95c 100755 --- a/src/ZonyLrcTools.Cli/publish.sh +++ b/src/ZonyLrcTools.Cli/publish.sh @@ -1,5 +1,5 @@ #!/bin/bash -echo "${steps.date.outputs.date}" +echo "${VERSION}" # Platforms=('win-x64' 'linux-x64' 'osx-x64') # if ! [ -d './TempFiles' ];