Update update_json_date.yml

This commit is contained in:
CanbiZ 2025-02-11 10:37:55 +01:00 committed by GitHub
parent 0122e70b1d
commit cdbabcac89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
name: Auto Update JSON-Dateien (new files only)
name: Auto Update JSON-Date
on:
push:
@ -33,7 +33,7 @@ jobs:
- name: Find newly added JSON files
id: find_new_json
run: |
NEW_JSON_FILES=$(git log --diff-filter=A --name-only --pretty=format: -- json/*.json || true)
NEW_JSON_FILES=$(git diff --diff-filter=A --name-only HEAD~1 -- json/*.json || true)
if [[ -z "$NEW_JSON_FILES" ]]; then
echo "CHANGED=false" >> $GITHUB_ENV