Skip to content

Commit

Permalink
Merge pull request #2 from kazufusa/fix/path
Browse files Browse the repository at this point in the history
Specify the installation path
  • Loading branch information
k1LoW authored Nov 4, 2024
2 parents 56ae92b + 016dc04 commit 3aede52
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ inputs:
runs:
using: 'composite'
steps:
-
id: set-path
shell: bash
run: echo "path=$HOME/.tbls/bin" >> $GITHUB_OUTPUT
-
shell: bash
run: |
mkdir -p ${{ steps.set-path.outputs.path }}
if [[ "$RUNNER_OS" == "Linux" || "$RUNNER_OS" == "macOS" ]]; then
echo "${{ steps.set-path.outputs.path }}" >> $GITHUB_PATH
elif [[ "$RUNNER_OS" == "Windows" ]]; then
echo $(cygpath -w "${{ steps.set-path.outputs.path }}") >> $GITHUB_PATH
fi
-
uses: k1LoW/gh-setup@v1
with:
Expand All @@ -28,3 +41,4 @@ runs:
bin-match: tbls
strict: true
force: ${{ inputs.force }}
bin-dir: ${{ steps.set-path.outputs.path }}

0 comments on commit 3aede52

Please sign in to comment.