Update readme.md
This commit is contained in:
parent
c28164abe3
commit
ddecc652d6
14
readme.md
14
readme.md
|
|
@ -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
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue