Files
test/.gitea/workflows/print2.yml
T
cshandClaude Opus 4.8 857e8d217a
Test Multi Jobs / first (push) Successful in 1s
Test Multi Jobs / second (push) Successful in 1s
Prepare / prepare (push) Canceled after 0s
test: rename workflows to .yml and gate downstream on prepare success
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-16 10:46:44 +08:00

22 lines
569 B
YAML

name: Print Two
on:
workflow_run:
workflows: ["Prepare"]
types:
- completed
jobs:
print:
runs-on: ubuntu-latest
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 完成"