Skip to content

Prevent scheduled workflow from being automatically disabled #112

@joverlee521

Description

@joverlee521

Context

The GitHub workflow docs state:

In a public repository, scheduled workflows are automatically disabled when no repository activity has occurred in 60 days.

List of affected workflows

Possible solutions

  1. Keep manually re-enabling affected workflows as they are noticed to be disabled
  2. Use the Keepalive Workflow action on affected workflows
  3. Create our own workflow that runs some activity as the Nextstrain bot. I'm not entirely sure what counts as "repository activity" but a couple options:
    • Push dummy commit to main
    • Push dummy commit to a long term "keep-alive" branch
    • Create and delete a new branch
    • Create and close a new issue
    • Other ideas?
  4. Make a central keep-alive workflow that uses the GitHub REST API to disable/enable affected workflows every <60 days
  5. ⛔️ Use Terraform run regularly to control this. The official GitHub provider for Terraform doesn't expose the endpoint we need.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions