From c57f0be73733653f5cf32396dcc77f419fad7e6d Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 15 Jan 2025 10:54:23 +0100 Subject: [PATCH] Update check_and_update_json_date.yml --- .github/workflows/check_and_update_json_date.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/check_and_update_json_date.yml b/.github/workflows/check_and_update_json_date.yml index 34b7cdbb..cd1e1841 100644 --- a/.github/workflows/check_and_update_json_date.yml +++ b/.github/workflows/check_and_update_json_date.yml @@ -27,8 +27,7 @@ jobs: - name: Modify JSON files run: | TODAY=$(date -u +%Y-%m-%d) - # Filtern der geƤnderten Dateien im aktuellen PR im Vergleich zum Basisbranch - for json_file in $(git diff --name-only ${{ github.base_ref }}...${{ github.head_ref }} | grep '.json$'); do + for json_file in $(find . -name "*.json"); do if jq -e 'type == "object"' "$json_file" > /dev/null 2>&1; then jq --arg today "$TODAY" '.date_created = $today' "$json_file" > tmp.json && mv tmp.json "$json_file" fi