Update input skip patterns (#16984)
* Fix minor typo: - job name will be file-check in any workflow - file-check job has a step which is check-file * Print any modified files * Change glob patterns for all source files (*.c, *.h etc). With the previous approach they only matched the root folder --------- Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud> Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
Tasos Katsoulas committed
Feb 10, 2024 at 20:43 UTC
29c1b548b61340cca74e7e1d7c3ce2f3e02d77d9
4 files changed
+64
-40
.github/workflows/build.yml
+15
-9
@@ -38,13 +38,13 @@ jobs:
38
with:
39
since_last_remote_commit: ${{ github.event_name != 'pull_request' }}
40
files: |
41
- **.c
42
- **.cc
43
- **.h
44
- **.hh
45
- **.in
46
- **.patch
47
- **.cmake
41
+ **/*.c
42
+ **/*.cc
43
+ **/*.h
44
+ **/*.hh
45
+ **/*.in
46
+ **/*.patch
47
+ **/*.cmake
48
CMakeLists.txt
49
netdata-installer.sh
50
.github/data/distros.yml
@@ -64,8 +64,14 @@ jobs:
64
web/server/h2o/libh2o/
65
files_ignore: |
66
netdata.spec.in
67
- **.md
68
- negation_patterns_first: true
67
+ **/*.md
68
+ - name: List all modified files in pattern
69
+ env:
70
+ ALL_MODIFIED_FILES: ${{ steps.check-files.outputs.all_modified_files }}
71
+ run: |
72
+ for file in ${ALL_MODIFIED_FILES}; do
73
+ echo "$file was modified"
74
+ done
75
- name: Check Run
76
id: check-run
77
run: |
.github/workflows/checks.yml
+15
-9
@@ -29,13 +29,13 @@ jobs:
29
with:
30
since_last_remote_commit: ${{ github.event_name != 'pull_request' }}
31
files: |
32
- **.c
33
- **.cc
34
- **.h
35
- **.hh
36
- **.in
37
- **.patch
38
- **.cmake
32
+ **/*.c
33
+ **/*.cc
34
+ **/*.h
35
+ **/*.hh
36
+ **/*.in
37
+ **/*.patch
38
+ **/*.cmake
39
CMakeLists.txt
40
.gitignore
41
.github/data/distros.yml
@@ -52,8 +52,14 @@ jobs:
52
web/server/h2o/libh2o/
53
files_ignore: |
54
netdata.spec.in
55
- **.md
56
- negation_patterns_first: true
55
+ **/*.md
56
+ - name: List all modified files in pattern
57
+ env:
58
+ ALL_MODIFIED_FILES: ${{ steps.check-files.outputs.all_modified_files }}
59
+ run: |
60
+ for file in ${ALL_MODIFIED_FILES}; do
61
+ echo "$file was modified"
62
+ done
63
- name: Check Run
64
id: check-run
65
run: |
.github/workflows/docker.yml
+17
-11
@@ -30,18 +30,18 @@ jobs:
30
fetch-depth: 0
31
submodules: recursive
32
- name: Check files
33
- id: file-check
33
+ id: check-files
34
uses: tj-actions/changed-files@v42
35
with:
36
since_last_remote_commit: ${{ github.event_name != 'pull_request' }}
37
files: |
38
- **.c
39
- **.cc
40
- **.h
41
- **.hh
42
- **.in
43
- **.patch
44
- **.cmake
38
+ **/*.c
39
+ **/*.cc
40
+ **/*.h
41
+ **/*.hh
42
+ **/*.in
43
+ **/*.patch
44
+ **/*.cmake
45
.dockerignore
46
CMakeLists.txt
47
netdata-installer.sh
@@ -58,12 +58,18 @@ jobs:
58
web/server/h2o/libh2o/
59
files_ignore: |
60
netdata.spec.in
61
- **.md
62
- negation_patterns_first: true
61
+ **/*.md
62
+ - name: List all modified files in pattern
63
+ env:
64
+ ALL_MODIFIED_FILES: ${{ steps.check-files.outputs.all_modified_files }}
65
+ run: |
66
+ for file in ${ALL_MODIFIED_FILES}; do
67
+ echo "$file was modified"
68
+ done
69
- name: Check Run
70
id: check-run
71
run: |
66
- if [ "${{ steps.file-check.outputs.any_modified }}" == "true" ] || [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
72
+ if [ "${{ steps.check-files.outputs.any_modified }}" == "true" ] || [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
73
echo 'run=true' >> "${GITHUB_OUTPUT}"
74
else
75
echo 'run=false' >> "${GITHUB_OUTPUT}"
.github/workflows/packaging.yml
+17
-11
@@ -40,18 +40,18 @@ jobs:
40
fetch-depth: 0
41
submodules: recursive
42
- name: Check files
43
- id: file-check
43
+ id: check-files
44
uses: tj-actions/changed-files@v42
45
with:
46
since_last_remote_commit: ${{ github.event_name != 'pull_request' }}
47
files: |
48
- **.c
49
- **.cc
50
- **.h
51
- **.hh
52
- **.in
53
- **.patch
54
- **.cmake
48
+ **/*.c
49
+ **/*.cc
50
+ **/*.h
51
+ **/*.hh
52
+ **/*.in
53
+ **/*.patch
54
+ **/*.cmake
55
netdata.spec.in
56
contrib/debian/
57
CMakeLists.txt
@@ -67,12 +67,18 @@ jobs:
67
src/fluent-bit/
68
web/server/h2o/libh2o/
69
files_ignore: |
70
- **.md
71
- negation_patterns_first: true
70
+ **/*.md
71
+ - name: List all modified files in pattern
72
+ env:
73
+ ALL_MODIFIED_FILES: ${{ steps.check-files.outputs.all_modified_files }}
74
+ run: |
75
+ for file in ${ALL_MODIFIED_FILES}; do
76
+ echo "$file was modified"
77
+ done
78
- name: Check Run
79
id: check-run
80
run: |
75
- if [ "${{ steps.file-check.outputs.any_modified }}" == "true" ] || [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
81
+ if [ "${{ steps.check-files.outputs.any_modified }}" == "true" ] || [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
82
echo 'run=true' >> "${GITHUB_OUTPUT}"
83
else
84
echo 'run=false' >> "${GITHUB_OUTPUT}"