scikit-learn/build_tools/github/check_build_trigger.sh

14 lines
341 B
Bash
Executable File

#!/bin/bash
set -e
set -x
COMMIT_MSG=$(git log --no-merges -1 --oneline)
# The commit marker "[cd build]" or "[cd build gh]" will trigger the build when required
if [[ "$GITHUB_EVENT_NAME" == schedule ||
"$COMMIT_MSG" =~ \[cd\ build\] ||
"$COMMIT_MSG" =~ \[cd\ build\ gh\] ]]; then
echo "::set-output name=build::true"
fi