diff --git a/action.yml b/action.yml index f1d1a09..c65aed7 100644 --- a/action.yml +++ b/action.yml @@ -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: @@ -28,3 +41,4 @@ runs: bin-match: tbls strict: true force: ${{ inputs.force }} + bin-dir: ${{ steps.set-path.outputs.path }}