Skip to content

Echange Packs GH Action workflows disabled after 60days of inactivity #136

@arm4b

Description

@arm4b

The problem when there were no commits in the repository for 60 days, - Github Automatically disables CI for it.
It happens all the time when we review new contributions in Exchange and figure out after merging that CI didn't run resulting in post-merge linting errors.

Possible solutions:

  1. https://github.com/marketplace/actions/keepalive-workflow heart beat commits .. 🤢 sounds like a hack

  2. Per @nzlosh There's a REST API endpoint that can be called to enable workflows, so that'd be more robust. https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#enable-a-workflow We could schedule an St2 workflow that iterates all exchange repos and calls the API to enable CI workflows. From the possible workarounds, this looks like the cleanest and most maintainable way to workaround the github limitation.

  3. Considering the StackStorm instance is automatically started/stopped, 3rd option could be an AWS Lambda function trying to re-enable GH Action Workflows for the Exchange repos. Example solution https://stackoverflow.com/a/68591566/4533625

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions