From 48711425eb17afa7ee303c96017529853b61e312 Mon Sep 17 00:00:00 2001 From: AgNO3 <33011851+hhhxiao@users.noreply.github.com> Date: Sat, 11 May 2024 12:54:36 +0800 Subject: [PATCH] Fix github action script bug --- .github/workflows/dotnet.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 93494e0..0392d3b 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -22,8 +22,9 @@ jobs: - name: Get Commit short hash id: vars - run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - run: echo "latest_tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT + run: | + echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + echo "latest_tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT shell: bash - name: Restore dependencies and build @@ -43,11 +44,11 @@ jobs: name: SoulsModTranslator-${{steps.vars.outputs.sha_short}} path: ./bin/Release/net7.0-windows/publish - - name: Release - uses: softprops/action-gh-release@v2 - if: startsWith(github.ref, 'refs/tags/') - with: - body_path: ${{ github.workspace }}/release_note - files: | - SoulsModTranslator${{steps.vars.outputs.latest_tag}}.zip - repository: hhhxiao/SoulsModTranslator \ No newline at end of file + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + body_path: ${{ github.workspace }}/release_note + files: | + SoulsModTranslator${{steps.vars.outputs.latest_tag}}.zip + repository: hhhxiao/SoulsModTranslator