【发布时间】:2020-05-31 07:47:07
【问题描述】:
我想在其中考虑常用路径:
on:
push:
# Run only on changes on these files
paths:
- 'lib/**.nim'
- 'doc/**.rst'
- 'doc/nimdoc.css'
- '.github/workflows/ci_docs.yml'
pull_request:
# Run only on changes on these files
paths:
- 'lib/**.nim'
- 'doc/**.rst'
- '.github/workflows/ci_docs.yml'
github 上的文档提到了[push, pull_request],但如果我们有路径节点,它就不起作用。避免代码重复的语法是什么?
(对于与https://github.community/t/how-to-factor-paths-in-common-for-push-and-pull-request/115967的交叉发帖,提前道歉,如果我得到任何答案,我会在另一端更新)
【问题讨论】:
标签: path pull-request github-actions