diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ee14476..c6fec7c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,7 +37,7 @@ jobs: echo "Base commit: $BASE_COMMIT" # Get list of added or modified JSON files in subdirectories - git diff --diff-filter=AM --name-only $BASE_COMMIT HEAD | grep '.*/.*\.json$' > changed_json_files.txt + git diff --diff-filter=AM --name-only $BASE_COMMIT HEAD | grep '.*/.*\.json$' > changed_json_files.txt || true # Output the list of files echo "Changed JSON files in subdirectories:" diff --git a/2025/PathplannerLib-2025.0.0-beta-3.1.json b/2025/PathplannerLib-2025.0.0-beta-3.1.json index 8a53e68..5f4b1f1 100644 --- a/2025/PathplannerLib-2025.0.0-beta-3.1.json +++ b/2025/PathplannerLib-2025.0.0-beta-3.1.json @@ -1,5 +1,5 @@ { - "fileName": "PathplannerLib-beta.json", + "fileName": "PathplannerLib-2025.0.0-beta-3.1.json", "name": "PathplannerLib", "version": "2025.0.0-beta-3.1", "uuid": "1b42324f-17c6-4875-8e77-1c312bc8c786", diff --git a/check.py b/check.py index 96fca2a..17fbf84 100755 --- a/check.py +++ b/check.py @@ -554,6 +554,9 @@ def check_file(filename): if not j['cppDependencies']: error('no C++ dependencies (at least one is required)') + + if j['fileName'] != os.path.basename(filename): + error('{0} does not match filename key: {1}'.format(j['fileName'], os.path.basename(filename))) # should have linuxathena as at least one of the cppDependencies platforms if j['cppDependencies']: