[英]Github Actions CI: Not running on push for feature branches
I am following this tutorial to run my unit tests on Github .我正在按照本教程在 Github 上运行我的单元测试。 I have it on both master and feature branch, but it's not firing when I push to the feature branch.
我在主分支和功能分支上都有它,但是当我推送到功能分支时它没有触发。
on:
push:
branches:
- '*'
- '!master'
- '!release*'
However if I follow the cron-based example from the docs :但是,如果我遵循文档中基于 cron 的示例:
on:
schedule:
- cron: '0 * * * *'
It will run but I want this to be for pull requests.它会运行,但我希望它用于拉取请求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.