Skip to content

Pre-commit workflows runs on forks #5258

Closed
@WisdomPill

Description

🐞 Describe the bug

The pre-commit auto-update workflow runs on forks too, to me it seems unnecessary also because I get an email about a failed job every night, since I do not have secrets set for the bot. In my opinion this workflow should run only on the main repository.

💡 To Reproduce

Just clone the repo and wait for the schedule of to kick in

💡 Expected behavior

The auto-update should not run on forks, it should work only on the main repository.

📋 Logs/tracebacks

Just have a look at my fork, (here)[https://github.com/WisdomPill/aiohttp/actions]

💡 Proposed solutions

  1. Everybody can disable actions on their fork, but it does not seem a viable solution because people will encounter the problem often.

  2. Although github actions does not support to add conditionals on the event, it supports them only in the steps, so an if on every step is what can be done. here

I would be more than happy to contribute to the repo and fix this if the second proposed solution works for you, otherwise let's discuss it and find a more elegant solution to this annoying problem.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions