我想根据前一阶段作业脚本执行的结果来创建作业。例如,
variables:
JOB2_CREATE=0
job_1:
script:
- JOB2_CREATE=1
# job 2 should only be created iff JOB2_CREATE is 1 which should get updated in job1.
job_2:
on:
variables:
$JOB2_CREATE == 1
script:
- echo "job2 created and ran successfully"
我正在寻找类似的东西。我该如何实现?