-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1003 Bytes
/
changes.yml
File metadata and controls
39 lines (37 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Changed Files
on:
workflow_call:
inputs:
path:
type: string
required: true
dir_names_max_depth:
type: number
default: 1
outputs:
matrix:
description: "matrix object"
value: ${{ jobs.changed.outputs.matrix }}
any_changed:
description: "boolean"
value: ${{ jobs.changed.outputs.any_changed }}
jobs:
changed:
name: Changes (${{ inputs.path }})
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.changed-files.outputs.all_changed_files }}
any_changed: ${{ steps.changed-files.outputs.any_changed }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
dir_names: true
diff_relative: true
path: ${{ inputs.path }}
dir_names_max_depth: ${{ inputs.dir_names_max_depth }}
matrix: true