147ccb6213
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.
16 lines
256 B
Bash
Executable File
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
|