name: Changed files reusable workflow on: workflow_call: inputs: files: required: true type: string outputs: any_changed: value: ${{ jobs.changed-files.outputs.any_changed }} permissions: contents: read jobs: changed-files: timeout-minutes: 5 runs-on: ubuntu-latest outputs: any_changed: ${{ steps.changed-files.outputs.any_changed }} steps: - name: Fetch custom Github Actions and base branch history uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 10 - name: Check for changed files id: changed-files uses: tj-actions/changed-files@48d8f15b2aaa3d255ca5af3eba4870f807ce6b3c # v45.0.9 with: files: ${{ inputs.files }}