Skip to content

Commit

Permalink
try expanding the env var elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
jonapich committed Jul 15, 2024
1 parent cd5a460 commit a59cbf5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ 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' && '${env:LocalAppData}\Microsoft\WindowsApps' || '/usr/local/bin' }}
ref:
description: The ref to use to run the install script.
default: ${{ github.action_ref }}
Expand All @@ -19,15 +18,15 @@ runs:
if: runner.os != 'Windows'
shell: bash
env:
TGF_PATH: ${{ inputs.tgf-path }}
TGF_PATH: ${{ inputs.tgf-path || '/usr/local/bin' }}
VERSION: ${{ inputs.ref }}
run: curl "https://raw.githubusercontent.com/coveooss/tgf/${VERSION}/get-latest-tgf.sh" | bash

- name: Install TGF (windows)
if: runner.os == 'Windows'
shell: pwsh
env:
TGF_PATH: ${{ inputs.tgf-path }}
TGF_PATH: ${{ inputs.tgf-path || '${env:LocalAppData}\Microsoft\WindowsApps' }}
VERSION: ${{ inputs.ref }}
run: |
echo ${env:TGF_PATH}
Expand Down

0 comments on commit a59cbf5

Please sign in to comment.