con*_*xyz 7 github github-actions
有没有办法将参数放入 GitHub 操作定义中,以便当您将其推送到 GitHub 时该操作不会运行?
\n我有一个包模板,我想包含某些操作,但我不希望模板的用户必须执行某些操作才能运行这些操作(不会自动运行 \xe2\x80\x93 并失败 \xe2\当他们推送到 GitHub 时为 x80\x93)
\n我希望有一个配置字段run_automatically: false或类似的东西。
Nev*_*uro 13
有两种方法:
...
jobs:
build_and_preview:
if: ${{ false }} // <- This make sure the workflow is skipped without any alert
runs-on: ubuntu-latest
.
.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3589 次 |
| 最近记录: |