-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Install TGF | ||
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. | ||
required: false | ||
ref: | ||
description: The ref to use to run the install script. | ||
default: master | ||
required: false | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install TGF (posix) | ||
if: runner.os != 'Windows' | ||
shell: bash | ||
env: | ||
TGF_PATH: ${{ inputs.tgf-path }} | ||
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: bash | ||
env: | ||
TGF_PATH: ${{ inputs.tgf-path }} | ||
VERSION: ${{ inputs.ref }} | ||
run: (Invoke-WebRequest https://raw.githubusercontent.com/coveooss/tgf/${VERSION}/get-latest-tgf.ps1).Content | Invoke-Expression |