dracutdevs / dracut

dracut the event driven initramfs infrastructure
https://github.com/dracutdevs/dracut/wiki
GNU General Public License v2.0
598 stars 397 forks source link

ci: do not run test container generation on forked repos by default #2460

Closed Henrik66 closed 1 year ago

Henrik66 commented 1 year ago

Container GitHub Action runs daily for dracutdevs developers. Every time dracut repo get's forked this daily github action runs on all forked repo's.

Some people know (and remember) to disable this action manually, but for the most this is just wasting significant resources as currently there is at east 300+ forked version of dracut on Github.

As suggested by @mwilck at https://github.com/dracutdevs/dracut/issues/1865#issue-1293154830

The workflow should be made conditional in some way.

Checklist

Fixes #1865

LaszloGombos commented 1 year ago

This is a good idea, but perhaps we should allow a way for a fork to opt-in running this action without forking the action file. Perhaps we can use https://docs.github.com/en/actions/learn-github-actions/variables to opt-in for the action (on forked repo's also).