-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (86 loc) · 2.74 KB
/
Copy pathchange-classification.yml
File metadata and controls
90 lines (86 loc) · 2.74 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Change classification
on:
workflow_call:
outputs:
automation:
description: GitHub Actions workflows changed
value: ${{ jobs.classify.outputs.automation }}
backend:
description: Laravel runtime or tests changed
value: ${{ jobs.classify.outputs.backend }}
dependencies:
description: Composer or npm dependencies changed
value: ${{ jobs.classify.outputs.dependencies }}
frontend:
description: Frontend sources or build configuration changed
value: ${{ jobs.classify.outputs.frontend }}
infrastructure:
description: Container or deployment configuration changed
value: ${{ jobs.classify.outputs.infrastructure }}
source:
description: Application source code changed
value: ${{ jobs.classify.outputs.source }}
permissions:
contents: read
pull-requests: read
jobs:
classify:
name: Classify changed files
runs-on: ubuntu-latest
outputs:
automation: ${{ steps.filter.outputs.automation }}
backend: ${{ steps.filter.outputs.backend }}
dependencies: ${{ steps.filter.outputs.dependencies }}
frontend: ${{ steps.filter.outputs.frontend }}
infrastructure: ${{ steps.filter.outputs.infrastructure }}
source: ${{ steps.filter.outputs.source }}
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Classify changes
id: filter
uses: dorny/paths-filter@v4
with:
filters: |
automation:
- '.github/workflows/**'
backend:
- 'app/**'
- 'artisan'
- 'bootstrap/**'
- 'composer.json'
- 'composer.lock'
- 'config/**'
- 'database/**'
- 'phpunit.xml'
- 'resources/lang/**'
- 'resources/views/**'
- 'routes/**'
- 'tests/**'
dependencies:
- 'composer.json'
- 'composer.lock'
- 'package.json'
- 'package-lock.json'
frontend:
- 'package.json'
- 'package-lock.json'
- 'resources/css/**'
- 'resources/js/**'
- 'vite.config.*'
infrastructure:
- '.env.docker.example'
- 'Caddyfile'
- 'Dockerfile'
- 'compose*.yml'
- 'install.sh'
source:
- 'app/**'
- 'bootstrap/**'
- 'config/**'
- 'database/**'
- 'resources/css/**'
- 'resources/js/**'
- 'resources/lang/**'
- 'resources/views/**'
- 'routes/**'