name: Print Two on: workflow_run: workflows: ["Prepare"] types: - completed jobs: print: runs-on: standard-ubuntu-22 if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: 每 10 秒打印一次数字 run: | echo "[$(date '+%F %T')] Print Two 启动 (上游 Prepare 结论: ${{ github.event.workflow_run.conclusion }})" for i in $(seq 1 5); do echo "[$(date '+%F %T')] Print Two -> $i" sleep 10 done echo "[$(date '+%F %T')] Print Two 完成"