Skip to content

Commit 35801db

Browse files
committed
add workflow
1 parent 6e78ab3 commit 35801db

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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 }}"

0 commit comments

Comments
 (0)