netty5/.github/scripts/check_build_result.sh
Norman Maurer 147ccb6213
Use custom script to check for build failures (#10968)
Motivation:

It turns out we can't use the action to check for build failures as it can't be used when a PR is done from a fork. Let's just use our simple script.

Modifications:

- Replace action with custom script

Result:

Builds for PRs that are done via forks work again.
2021-01-27 12:02:24 +01:00

16 lines
256 B
Bash
Executable File

#!/bin/bash
set -e
if [ "$#" -ne 1 ]; then
echo "Expected build log as argument"
exit 1
fi
if grep -q 'BUILD FAILURE' $1 ; then
echo "Build failure detected, please inspect build log"
exit 1
else
echo "Build successful"
exit 0
fi