Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflows On Inactive Repositories Should Remain Enabled #73

Open
sprankhub opened this issue Sep 11, 2023 · 0 comments
Open

Workflows On Inactive Repositories Should Remain Enabled #73

sprankhub opened this issue Sep 11, 2023 · 0 comments

Comments

@sprankhub
Copy link
Contributor

According to observations by @Vinai, scheduled workflows on inactive repositories seem to be disabled automatically. This is also mentioned in the docs:

Warning: To prevent unnecessary workflow runs, scheduled workflows may be disabled automatically. When a public repository is forked, scheduled workflows are disabled by default. In a public repository, scheduled workflows are automatically disabled when no repository activity has occurred in 60 days.

This is an issue for us, because we have repositories with no activity in a long time, but we need the scheduled workflow to merge upstream changes nevertheless. There seem to be only two solutions:

  1. Create empty dummy commits to pretend activity. This is e.g. implemented in https://github.com/marketplace/actions/keepalive-workflow. However, we should not have any dummy commits in our repositories.
  2. Enable the workflow again after it has been disabled. I only found an AWS solution for this. In general, we could use the REST API to enable the workflow again as soon as it has been disabled. However, this seems to not be supported by Terraform yet, so we might want to create a separate GitHub Action for this?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant