浏览代码

correctly determine when the run if from an PR or not

Baptiste Augrain 4 年之前
父节点
当前提交
51824a83d1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      check_cron_or_pr.sh

+ 1 - 1
check_cron_or_pr.sh

@@ -2,7 +2,7 @@
 
 
 set -e
 set -e
 
 
-if [[ $github.event.number ]]; then
+if [[ $github.event_name == "pull_request" ]]; then
 	echo "It's a PR"
 	echo "It's a PR"
 	
 	
 	export SHOULD_BUILD="yes"
 	export SHOULD_BUILD="yes"