From 346e07e9e78bc2dc83f12a6c5e1ea3a8ab0c19dd Mon Sep 17 00:00:00 2001 From: real-zony Date: Thu, 22 Sep 2022 12:49:42 +0800 Subject: [PATCH] ci: debug workflow. --- .github/workflows/dotnet.yml | 5 ++++- src/ZonyLrcTools.Cli/publish.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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' ];