Skip to content

Commit

Permalink
Fix github action script bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhxiao authored May 11, 2024
1 parent 4ba66c6 commit 4871142
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
- 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

0 comments on commit 4871142

Please sign in to comment.