fedora-comps/ci/validate-comps
Adam Williamson fcf37586a6 Rename all CI files to be (hopefully) unique
Per https://pagure.io/fedora-ci/general/issue/404 , as things are
right now, having CI files with the same names as those in other
repos can cause clashes. Let's rename all of ours to avoid this.
Also drop a path element in validate-comps.yaml that broke the
tests...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-04-24 10:21:47 -07:00

22 lines
380 B
Bash
Executable File

#!/usr/bin/bash
set -euxo pipefail
main() {
failure="false"
make sort || failure="true"
make validate || failure="true"
# Fail if any changes were made to the repo
if [[ -n "(git status --short)" ]]; then
failure="true"
fi
if [[ "${failure}" == "true" ]]; then
echo "At least one check failed!"
exit 1
fi
}
main "${@}"