-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (45 loc) · 1.14 KB
/
files-changed.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
name: files-changed
on:
workflow_call:
outputs:
app:
value: ${{ jobs.detect.outputs.app }}
actions:
value: ${{ jobs.detect.outputs.actions }}
lint:
value: ${{ jobs.detect.outputs.lint }}
docs:
value: ${{ jobs.detect.outputs.docs }}
jobs:
detect:
runs-on: ubuntu-latest
timeout-minutes: 3
outputs:
app: ${{ steps.changes.outputs.app }}
actions: ${{ steps.changes.outputs.actions }}
lint: ${{ steps.changes.outputs.lint }}
docs: ${{ steps.changes.outputs.docs }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
app:
- "**/*.go"
- "**/*.templ"
- "go.mod"
- "go.sum"
- "Makefile"
actions:
- added|modified:
- ".github/workflows/*"
- "Makefile"
lint:
- added|modified:
- "**/*.go"
- ".golangci.yml"
docs:
- "**/*.md"