[SPARK-37833][INFRA][FOLLOW-UP] Run checking modules of precondition only in forked repository
[SPARK-37833][INFRA][FOLLOW-UP] Run checking modules of precondition only in forked repository

### What changes were proposed in this pull request?

This PR is a followup of https://github.com/apache/spark/pull/35121. We should run "Check all modules" in precondition job only in the forked repository because `is-changed.py` requires `APACHE_SPARK_REF` to be set: https://github.com/apache/spark/blob/master/dev/is-changed.py#L60

### Why are the changes needed?

To fix broken build in main branch. PRs are not affected.

### Does this PR introduce _any_ user-facing change?

No, dev-only.

### How was this patch tested?

Should be merged to test.

Closes #35133 from HyukjinKwon/SPARK-37833.

Authored-by: Hyukjin Kwon <2680965ad5aae29275c8fb10150cb10f5554e78b@apache.org>
Signed-off-by: Hyukjin Kwon <2680965ad5aae29275c8fb10150cb10f5554e78b@apache.org>

gengliangwang/spark,ueshin/apache-spark,WeichenXu123/spark,vinodkc/spark,zzcclp/spark,HyukjinKwon/spark,gengliangwang/spark,shaneknapp/spark,zzcclp/spark,rednaxelafx/apache-spark,HyukjinKwon/spark,zero323/spark,rednaxelafx/apache-spark,hvanhovell/spark,vinodkc/spark,nchammas/spark,zero323/spark,WeichenXu123/spark,ueshin/apache-spark,zzcclp/spark,nchammas/spark,srowen/spark,witgo/spark,ueshin/apache-spark,zero323/spark,shaneknapp/spark,cloud-fan/spark,gengliangwang/spark,mahak/spark,JoshRosen/spark,rednaxelafx/apache-spark,hvanhovell/spark,apache/spark,srowen/spark,holdenk/spark,dongjoon-hyun/spark,mahak/spark,mahak/spark,WeichenXu123/spark,xuanyuanking/spark,hvanhovell/spark,xuanyuanking/spark,zero323/spark,mahak/spark,mahak/spark,shaneknapp/spark,srowen/spark,nchammas/spark,xuanyuanking/spark,mahak/spark,xuanyuanking/spark,apache/spark,vinodkc/spark,ueshin/apache-spark,vinodkc/spark,vinodkc/spark,rednaxelafx/apache-spark,JoshRosen/spark,xuanyuanking/spark,zero323/spark,srowen/spark,ueshin/apache-spark,nchammas/spark,mahak/spark,rednaxelafx/apache-spark,witgo/spark,cloud-fan/spark,wangyum/spark,gengliangwang/spark,witgo/spark,holdenk/spark,WeichenXu123/spark,WeichenXu123/spark,hvanhovell/spark,HyukjinKwon/spark,apache/spark,wangyum/spark,rednaxelafx/apache-spark,witgo/spark,apache/spark,ueshin/apache-spark,JoshRosen/spark,srowen/spark,WeichenXu123/spark,WeichenXu123/spark,wangyum/spark,shaneknapp/spark,witgo/spark,JoshRosen/spark,vinodkc/spark,cloud-fan/spark,cloud-fan/spark,gengliangwang/spark,holdenk/spark,zero323/spark,zero323/spark,xuanyuanking/spark,rednaxelafx/apache-spark,srowen/spark,HyukjinKwon/spark,zzcclp/spark,wangyum/spark,dongjoon-hyun/spark,wangyum/spark,holdenk/spark,cloud-fan/spark,hvanhovell/spark,shaneknapp/spark,wangyum/spark,dongjoon-hyun/spark,holdenk/spark,JoshRosen/spark,holdenk/spark,dongjoon-hyun/spark,gengliangwang/spark,srowen/spark,apache/spark,nchammas/spark,nchammas/spark,JoshRosen/spark,ueshin/apache-spark,dongjoon-hyun/spark,apache/spark,nchammas/spark,dongjoon-hyun/spark,shaneknapp/spark,dongjoon-hyun/spark,HyukjinKwon/spark,cloud-fan/spark,zzcclp/spark,shaneknapp/spark,wangyum/spark,HyukjinKwon/spark,xuanyuanking/spark,gengliangwang/spark,witgo/spark,hvanhovell/spark,holdenk/spark,HyukjinKwon/spark,cloud-fan/spark,JoshRosen/spark,zzcclp/spark,apache/spark,hvanhovell/spark,zzcclp/spark,witgo/spark,vinodkc/spark