Skip to content
Notis

Automate Cleanup of Stale GitHub Workflows

Every night, Notis cancels workflows that have been running too long or are stuck queued. Your runners stay free and deployments aren't blocked.

Trigger

Recurring schedule

Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.

Action

Cancel a workflow run

Requests cancellation of a queued or in-progress workflow run; cancellation may take time.

Why this helps

Workflows get stuck running indefinitely or queued forever, blocking newer runs. Manually hunting for stuck workflows wastes time, and forgotten workflows waste cloud resources.

  • Free up runners automatically without manual intervention
  • Prevent new deployments from blocking on stale workflows
  • Reduce CI/CD resource waste
  • Simplify workflow management

Setup

Build it in a few focused steps.

  • 1Connect your GitHub integration to Notis.
  • 2Tell Notis: 'Every night at 11 PM, cancel any GitHub workflows that have been running for more than 2 hours or stuck in queue for more than 30 minutes.'
  • 3Notis will ask for your timeout thresholds.
  • 4Pick your schedule and notification channel.
  • 5Monitor the first few runs to ensure the settings are right.

Questions about this workflow

Can I customize which workflows get cancelled?

Yes. Tell Notis: 'Cancel only CI workflows, not releases' or specify by branch.

What about workflows that need to run long?

Notis lets you exclude specific workflows: 'Don't cancel the backup workflow.'

Can I see what was cancelled?

Yes, Notis sends a summary to your channel.

When this happens · Trigger

Fires when a new comment is created in the accessible workspace.

Do this · Action

Requests cancellation of a queued or in-progress workflow run; cancellation may take time.

Supported Triggers and Actions

Notis builds workflows that link Notion to GitHub. A trigger fires from one place; an action lands in another.

Notion triggers

GitHub actions

Recurring trigger

Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.

TriggerScheduled

Accept a repository invitation

Accept a pending repository invitation.

ActionInstant

Webhook trigger

Notis starts this workflow when an external tool or custom backend sends an HTTP request.

TriggerInstant

Abort Repository Migration

Aborts a queued or ongoing repository migration.

ActionInstant

Comment Created

Fires when a new comment is created in the accessible workspace.

TriggerInstant

Add email for auth user

Add email addresses to your account.

ActionInstant

Database Created

Fires when a new database container is created.

TriggerInstant

Add app access restrictions

Allow apps to push to a protected branch.

ActionInstant

Data Source Created

Fires when a new data source is created in the workspace.

TriggerInstant

Add a repository collaborator

Add a user as a repository collaborator or update their access.

ActionInstant

Data Source Schema Updated

Fires when a data source’s columns are added, removed, or renamed.

TriggerInstant

Add field to user project

Adds a custom field to a user-owned project.

ActionInstant

Page Content Updated

Fires when the body content of an accessible page is updated.

TriggerInstant

Add a repository to an app installation

Grant an app access to a repository.

ActionInstant

Page Created

Fires when a new page is created in the accessible workspace.

TriggerInstant

Add item to user project

Adds an issue or pull request to a user-owned project.

ActionInstant

Connect any two apps with Notis in the middle.

Notion and GitHub, or any other combination from 1,700+ integrations.

When this happens · Trigger

Do this · Action

Save your first hour today.

7-day trial of any paid plan, with $20 of usage included.
No card. Works with personal or business GitHub.