Updated json chema structure due to changes in the remorte repository.

- Added malformed schema checking and reporting to the workflow and the updater script
This commit is contained in:
IMXNOOBX
2025-08-28 08:36:39 +02:00
parent 9e411837e9
commit 4386bc18d1
2 changed files with 49 additions and 29 deletions
+12 -2
View File
@@ -27,13 +27,23 @@ jobs:
id: run-python-script
run: |
python ./offsets/update_offsets.py
echo "exit_code=$?" >> $GITHUB_OUTPUT
continue-on-error: true
- name: Check Python Script Exit Code
if: steps.run-python-script.outcome == 'failure'
run: |
echo "Repository has no updates"
exit 0
echo "Python script exited with code: ${{ steps.run-python-script.outputs.exit_code }}"
if [ "${{ steps.run-python-script.outputs.exit_code }}" -eq 2 ]; then
echo "Could not parse offsets json file, most likely due to a schema change, check logs above!"
exit 1
fi
if [ "${{ steps.run-python-script.outputs.exit_code }}" -ne 0 ]; then
echo "Repository has no updates"
exit 0
fi
# - name: Commit and push changes
# if: steps.run-python-script.outcome == 'success'