Files
test/.gitea/workflows/print1.yml
T
csh d73e06301a
Test Multi Jobs / first (push) Successful in 0s
Test Multi Jobs / second (push) Successful in 0s
Prepare / prepare (push) Successful in 12s
test: test
2026-07-17 17:58:30 +08:00

22 lines
574 B
YAML

name: Print One
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 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 完成"