Update readme.md

This commit is contained in:
xxq250 2026-04-13 11:00:09 +08:00
parent c28164abe3
commit ddecc652d6
1 changed files with 14 additions and 0 deletions

View File

@ -23,3 +23,17 @@ Runner的标签用于确定Runner可以运行哪些Job以及如何运行它们
如果您想直接在主机上运行Job您可以将其更改为ubuntu-22.04:host或仅ubuntu-22.04:host是可选的。 然而我们建议您使用类似linux_amd64:host或windows:host的特殊名称以避免误用。
### 流水线中 runner 使用
```
name: demo
on:
workflow_call:
workflow_dispatch:
jobs:
job1:
runs-on: ubuntu-latest # 替换自定义的 labels
steps:
- name: Checkout
uses: actions/checkout@master
```