File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ # **what?**
2+ # Reusable workflow to check for changes in specific paths.
3+
4+ # **why?**
5+ # Provide a single source of truth for checking which components have changed.
6+
7+ # **when?**
8+ # This workflow is called by other workflows that need to know which components
9+ # have been modified in a PR or push.
10+
11+ name : Check Component Changes
12+
13+ on :
14+ pull_request :
15+
16+ permissions : read-all
17+
18+ jobs :
19+ predicate-quantifier-some :
20+ name : " Check for changes in some path"
21+ runs-on : [ubuntu-latest]
22+ permissions : read-all
23+ steps :
24+ - uses : dorny/paths-filter@v3
25+ id : changes
26+ # we only have files to check on pull_request triggers
27+ with :
28+ filters : |
29+ core_changed:
30+ - 'core/package/**'
31+ core_changed_changelog:
32+ - 'core/package/**'
33+ - '!core/package/**/tests/**'
34+ - '!core/package/**/*.md'
35+ - '!core/package/.changes/**'
36+ - '!core/package/.changie.yaml'
37+ scripts_changed:
38+ - 'scripts/**'
39+ scripts_changed_changelog:
40+ - 'scripts/**'
41+ - '!scripts/**/*.md'
42+ - '!scripts/.changes/**'
43+ - '!scripts/.changie.yaml'
44+
45+ - name : Debug Outputs
46+ run : |
47+ echo "core_changed: ${{ steps.changes.outputs.core_changed }}"
48+ echo "core_changed_changelog: ${{ steps.changes.outputs.core_changed_changelog }}"
49+ echo "scripts_changed: ${{ steps.changes.outputs.scripts_changed }}"
50+ echo "scripts_changed_changelog: ${{ steps.changes.outputs.scripts_changed_changelog }}"
You can’t perform that action at this time.
0 commit comments