diff --git a/setup/action.yaml b/setup/action.yaml index 0a8b8605..b9aa1b69 100644 --- a/setup/action.yaml +++ b/setup/action.yaml @@ -2,6 +2,14 @@ name: Trunk Check author: trunk.io description: The official trunk.io GitHub action to install trunk +inputs: + trunk-path: + description: + Path to Trunk Launcher. If not provided, we'll look for it the repo root, `.trunk/bin` and + `tools/`. If it can't be found anywhere and is not provided explicitly, we'll download it on + demand. + required: false + branding: icon: check color: green @@ -12,3 +20,5 @@ runs: - name: Locate trunk shell: bash run: ${GITHUB_ACTION_PATH}/locate_trunk.sh + env: + INPUT_TRUNK_PATH: ${{ inputs.trunk-path }}