Skip to content

Commit

Permalink
install in path on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jonapich committed Jul 15, 2024
1 parent c70f258 commit d18e37d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,3 @@ jobs:
ref: ${{ github.head_ref }}

- run: tgf --help-tgf
if: runner.os != 'Windows'

- run: ./tgf --help-tgf
if: runner.os == 'Windows'
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ inputs:
tgf-path:
description: Installs the TGF binary to this folder. The folder will not be added to the PATH.
required: false
default: ${{ runner.os == 'Windows' && '%LocalAppData%\Microsoft\WindowsApps' || '/usr/local/bin' }}
ref:
description: The ref to use to run the install script.
default: ${{ github.action_ref }}
Expand All @@ -29,4 +30,5 @@ runs:
TGF_PATH: ${{ inputs.tgf-path }}
VERSION: ${{ inputs.ref }}
run: |
echo ${env:TGF_PATH}
(Invoke-WebRequest https://raw.githubusercontent.com/coveooss/tgf/${env:VERSION}/get-latest-tgf.ps1).Content | Invoke-Expression

0 comments on commit d18e37d

Please sign in to comment.