Download testbed/PyThaiNLP__pythainlp/build_tools/github/check_build_trigger.sh from hc99/FEA-Bench: direct link, hf CLI and curl.
- Browser
- Download file 330 Bytes
-
https://huggingface.co/datasets/hc99/FEA-Bench/resolve/main/testbed/PyThaiNLP__pythainlp/build_tools/github/check_build_trigger.sh
- Command line
-
hf download hf://datasets/hc99/FEA-Bench/testbed/PyThaiNLP__pythainlp/build_tools/github/check_build_trigger.sh
-
curl -L -o check_build_trigger.sh https://huggingface.co/datasets/hc99/FEA-Bench/resolve/main/testbed/PyThaiNLP__pythainlp/build_tools/github/check_build_trigger.sh
330 Bytes
| set -e | |
| set -x | |
| COMMIT_MSG=$(git log --no-merges -1 --oneline) | |
| # The commit marker "[cd build]" will trigger the build when required | |
| if [[ "$GITHUB_EVENT_NAME" == "workflow_dispatch" || | |
| "$GITHUB_EVENT_NAME" == "release" || | |
| "$COMMIT_MSG" =~ "[cd build]" ]]; then | |
| echo "build=true" >> $GITHUB_OUTPUT | |
| fi | |