Skip to content

Commit

Permalink
[Actions] Updated .github/actions/dotnet-tool/action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Oct 22, 2024
1 parent 7d44159 commit 0e849e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/dotnet-tool/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ runs:
- name: "Install dotnet tool (Latest)"
if: inputs.TOOL_VERSION == 'latest'
shell: bash
working-directory: ${{ github.workspace }}
run: dotnet tool install --local ${{inputs.TOOL_NAME}}
env:
DOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
Expand All @@ -35,6 +36,7 @@ runs:
- name: "Install dotnet tool (Specific Version)"
if: inputs.TOOL_VERSION != 'latest'
shell: bash
working-directory: ${{ github.workspace }}
run: dotnet tool install --local ${{inputs.TOOL_NAME}} --version ${{inputs.TOOL_VERSION}}
env:
DOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
Expand All @@ -52,5 +54,6 @@ runs:

- name: "Restore"
shell: bash
working-directory: ${{ github.workspace }}
run: dotnet tool restore

0 comments on commit 0e849e2

Please sign in to comment.