[SPARK-38970][CI] Skip build-and-test workflow on forks when scheduled
[SPARK-38970][CI] Skip build-and-test workflow on forks when scheduled

### What changes were proposed in this pull request?
The `configure-jobs` and `precondition` jobs in the `build-and-test` workflow should be skipped on fork repositories as all subsequent / dependent jobs are already skipped.

### Why are the changes needed?
The `build and test` workflow is scheduled to run six times a day. The jobs then only run for `type == 'scheduled'` inside apache/spark repository, not for forks. However, the `configure-jobs` and `precondition` jobs always run, even though all subsequent jobs are skipped on forks.

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

### How was this patch tested?
No

Closes #36285 from EnricoMi/branch-dont-check-changes-on-forks.

Authored-by: Enrico Minack <64b2b6d12bfe4baae7dad3d018f8cbf6b0e7a044@enrico.minack.dev>
Signed-off-by: Hyukjin Kwon <2680965ad5aae29275c8fb10150cb10f5554e78b@apache.org>

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