fedora-iot / greenboot

Generic Health Checking Framework for systemd
GNU Lesser General Public License v2.1
101 stars 29 forks source link

ci: add greenboot-rs ci workflow #126

Closed yih-redhat closed 1 year ago

nullr0ute commented 1 year ago

This needs to me a PR against the greenboot-rs branch, not main

yih-redhat commented 1 year ago

From my understanding, the workflow files should be put into main branch, then it can be triggered. And it can decide to run for which sub branch. In this case, the workflow will only run for pull_request that targeting greenboot-rs branch, https://github.com/fedora-iot/greenboot/pull/126/files#diff-11b9ad7b2fa47d2680fcd076bb109a944e94a0691a84a53e6b29189a59ccc993R96

For workflow that only exist in non-main branch, I googled it and found some articles that said it should exist in main to be triggered. I also made some test, added workflow in a sub-branch, and then made a pull_request to that sub-branch, the workflow cannot be triggered.

@henrywang, please correct me if I am wrong.