[ci] Make upstream_utils check error with a more clear message (#8153)

Now it links to the README in upstream_utils.
This commit is contained in:
Gold856
2025-08-03 14:37:40 -04:00
committed by GitHub
parent b3aeee18c8
commit c42fde5d07

View File

@@ -141,4 +141,11 @@ jobs:
- name: Add untracked files to index so they count as changes
run: git add -A
- name: Check output
run: git --no-pager diff --exit-code HEAD ':!*.bazel'
run: |
set +e
git --no-pager diff --exit-code HEAD ':!*.bazel'
git_exit_code=$?
if test "$git_exit_code" -ne "0"; then
echo "::error ::upstream_utils check failed. This is usually caused by a bad script or the copied files differing from what the script outputs. You can learn more about using upstream_utils to modify thirdparty libraries at https://github.com/wpilibsuite/allwpilib/blob/main/upstream_utils/README.md"
exit $git_exit_code
fi