From 480c758488acabb12d48dc98c4918d55cb7c991f Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 22 Apr 2022 21:40:36 +0200 Subject: [PATCH] Update daily_README.yaml --- .github/workflows/daily_README.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/daily_README.yaml b/.github/workflows/daily_README.yaml index ff22fcc6e..fa01b4a7d 100644 --- a/.github/workflows/daily_README.yaml +++ b/.github/workflows/daily_README.yaml @@ -13,7 +13,24 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v3 - - name: Run script file + - name: Update path_filters + run: | + # Init + echo "Starting" + + # Go through all folders, add to filters if not existing + for f in $( find -- * -maxdepth 0 -type d | sort -r ); do + if [ -f "$f"/config.json ]; then + if ! grep -Fxq "$f" ".github/paths-filter.yml"; then + echo "$f: $f/config.*" >> ".github/paths-filter.yml" + fi + fi + done + + # Sort yaml + diff -u <(grep name: ".github/paths-filter.yml") <(grep name: ".github/paths-filter.yml" | sort) + + - name: Create README file run: | # Init echo "Starting"