From 94f533f758a52a567879fca76dd43f165db184d2 Mon Sep 17 00:00:00 2001
From: Tasos Katsoulas <12612986+tkatsoulas@users.noreply.github.com>
Date: Mon, 12 Feb 2024 11:59:32 +0200
Subject: [PATCH] Use changed files in check-files workflow (#16993)

We hit a limit when too many files were changing. Most commonly the case will be moving too many files that's why we amend this.

---------

Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
---
 .github/workflows/build.yml     | 9 +++++----
 .github/workflows/checks.yml    | 9 +++++----
 .github/workflows/docker.yml    | 9 +++++----
 .github/workflows/packaging.yml | 9 +++++----
 4 files changed, 20 insertions(+), 16 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6446d1400e..d7a2c32936 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -65,12 +65,13 @@ jobs:
           files_ignore: |
             netdata.spec.in
             **/*.md
-      - name: List all modified files in pattern
+      - name: List all changed files in pattern
+        continue-on-error: true
         env:
-          ALL_MODIFIED_FILES: ${{ steps.check-files.outputs.all_modified_files }}
+          ALL_CHANGED_FILES: ${{ steps.check-files.outputs.all_changed_files }}
         run: |
-          for file in ${ALL_MODIFIED_FILES}; do
-            echo "$file was modified"
+          for file in ${ALL_CHANGED_FILES}; do
+            echo "$file was changed"
           done
       - name: Check Run
         id: check-run
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index 27d40ca89d..feaf9c33e8 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -53,12 +53,13 @@ jobs:
           files_ignore: |
             netdata.spec.in
             **/*.md
-      - name: List all modified files in pattern
+      - name: List all changed files in pattern
+        continue-on-error: true
         env:
-          ALL_MODIFIED_FILES: ${{ steps.check-files.outputs.all_modified_files }}
+          ALL_CHANGED_FILES: ${{ steps.check-files.outputs.all_changed_files }}
         run: |
-          for file in ${ALL_MODIFIED_FILES}; do
-            echo "$file was modified"
+          for file in ${ALL_CHANGED_FILES}; do
+            echo "$file was changed"
           done
       - name: Check Run
         id: check-run
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 1beed58404..47eb2634d6 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -59,12 +59,13 @@ jobs:
           files_ignore: |
             netdata.spec.in
             **/*.md
-      - name: List all modified files in pattern
+      - name: List all changed files in pattern
+        continue-on-error: true
         env:
-          ALL_MODIFIED_FILES: ${{ steps.check-files.outputs.all_modified_files }}
+          ALL_CHANGED_FILES: ${{ steps.check-files.outputs.all_changed_files }}
         run: |
-          for file in ${ALL_MODIFIED_FILES}; do
-            echo "$file was modified"
+          for file in ${ALL_CHANGED_FILES}; do
+            echo "$file was changed"
           done
       - name: Check Run
         id: check-run
diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml
index 1b7e7f9e93..1a03ce5b19 100644
--- a/.github/workflows/packaging.yml
+++ b/.github/workflows/packaging.yml
@@ -68,12 +68,13 @@ jobs:
             web/server/h2o/libh2o/
           files_ignore: |
             **/*.md
-      - name: List all modified files in pattern
+      - name: List all changed files in pattern
+        continue-on-error: true
         env:
-          ALL_MODIFIED_FILES: ${{ steps.check-files.outputs.all_modified_files }}
+          ALL_CHANGED_FILES: ${{ steps.check-files.outputs.all_changed_files }}
         run: |
-          for file in ${ALL_MODIFIED_FILES}; do
-            echo "$file was modified"
+          for file in ${ALL_CHANGED_FILES}; do
+            echo "$file was changed"
           done
       - name: Check Run
         id: check-run