test: add prepare + two workflow_run print workflows

This commit is contained in:
csh
2026-07-15 09:22:57 +08:00
parent f406d829cd
commit dcb03831f3
3 changed files with 94 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
name: Print One
on:
workflow_run:
workflows: ["Prepare"]
types:
- completed
jobs:
print:
runs-on: ubuntu-latest
steps:
- name: 每 10 秒打印一次数字
run: |
echo "[$(date '+%F %T')] Print One 启动 (上游 Prepare 结论: ${{ github.event.workflow_run.conclusion }})"
for i in $(seq 1 5); do
echo "[$(date '+%F %T')] Print One -> $i"
sleep 10
done
echo "[$(date '+%F %T')] Print One 完成"