name: Install the linter
description: Downloads a pinned linter release.
inputs:
  version:
    description: Linter version
    default: "2.1.0"
runs:
  using: composite
  steps:
    - name: Install
      shell: bash
      env:
        VERSION: ${{ inputs.version }}
      run: |
        curl -fsSL "http://releases.example.com/lint/install.sh" | sudo bash -s -- "$VERSION"
        echo "$RUNNER_TEMP/lint" >> "$GITHUB_PATH"
    - uses: actions/cache@v4
      with:
        path: ~/.cache/lint
        key: lint-${{ inputs.version }}
