Skip to content

Commit

Permalink
investigate...
Browse files Browse the repository at this point in the history
  • Loading branch information
jonapich committed Jul 12, 2024
1 parent 0dc0ea2 commit 041d9ac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ jobs:
- uses: actions/checkout@v4
- run: ./get-latest-tgf.sh


windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- run: ./get-latest-tgf.ps1


action:
strategy:
fail-fast: false
Expand Down
17 changes: 14 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ description: GitHub Action to install https://github.com/coveooss/tgf

inputs:
tgf-path:
description: Installs the TGF binary to this folder. The folder is not added to the path.
description: Installs the TGF binary to this folder. The folder will be added to the PATH.
required: false
ref:
description: The ref to use to run the install script.
default: ${{ github.action_ref }}
required: false


runs:
using: "composite"
steps:
Expand All @@ -26,5 +27,15 @@ runs:
shell: pwsh
env:
TGF_PATH: ${{ inputs.tgf-path }}
VERSION: ${{ inputs.ref }}
run: (Invoke-WebRequest https://raw.githubusercontent.com/coveooss/tgf/${{ inputs.ref }}/get-latest-tgf.ps1).Content | Invoke-Expression
run: |
dir variable:
dir env:
(Invoke-WebRequest https://raw.githubusercontent.com/coveooss/tgf/${{ inputs.ref }}/get-latest-tgf.ps1).Content | Invoke-Expression
#
# - name: Add TGF to PATH
# shell: bash
# env:
# SEPARATOR: ${{ runner.os == 'Windows' && ';' || ':' }}
# run: |
# location=
# echo "PATH=${PATH}${SEPARATOR}${TGF_PATH}" >> $GITHUB_ENV

0 comments on commit 041d9ac

Please sign in to comment.