Skip to main content

Monitor GitHub Actions budget and send usage alerts to Slack

Workflow preview

Workflow preview
100%
Monitor GitHub Actions budget and send usage alerts to Slack preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow runs daily to track GitHub Actions usage across selected repositories, combines recent workflow run stats with GitHub Actions billing data, calculates budget burn rate ...

Best for

  • DevOps automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.slack, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Adriaan van Niekerk.

Original n8n.io source

1.1 Workflow description

Title
Monitor GitHub Actions budget and send usage alerts to Slack
Workflow name
Monitor GitHub Actions budget and send usage alerts to Slack

Quick Overview

This workflow runs daily to track GitHub Actions usage across selected repositories, combines recent workflow-run stats with GitHub Actions billing data, calculates budget burn rate and projected spend, and posts a summary to Slack with an additional alert when usage exceeds a defined threshold.

How it works

  1. Runs on a daily schedule.
  2. Reads configuration values (repo owner, repo list, budget minutes, cost per minute, and Slack channel) and expands the comma-separated repo list into individual repositories.
  3. Calls the GitHub REST API for each repository to fetch recent GitHub Actions workflow runs and aggregates run counts and failures by workflow name.
  4. Fetches organization-level GitHub Actions billing data from the GitHub billing API.
  5. Calculates minutes used vs. budget, billable minutes, estimated cost, projected full-month usage, and whether the alert threshold is exceeded.
  6. Formats a Slack message containing the usage/budget metrics and a breakdown of recent workflow activity.
  7. Posts an urgent Slack warning if the threshold is exceeded; otherwise it posts the daily summary to Slack.

Setup

  1. Add GitHub credentials (OAuth2 or a PAT) with access to the target repos and permission to read Actions billing (typically admin:org read, plus repo as needed).
  2. Add a Slack credential with permission to post messages (chat:write) and set the target channel in the configuration.
  3. Update the configuration values for repo owner, repositories to monitor, monthly budget minutes, alert threshold percent, and cost per minute.
  4. If you monitor a personal account instead of an organization, change the billing endpoint to /users/{owner}/settings/billing/actions in the GitHub billing request.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Main — GitHub Actions Usage Monitor

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Section — Collect

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Section — Analyze & Calculate

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Section — Report & Alert

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Credentials Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Personal Account Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Daily Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 8 - Configuration

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - Expand Repo List

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Fetch Recent Workflow Runs

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 11 - Aggregate Workflow Stats

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Fetch Org Billing Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 13 - Calculate Budget Burn Rate

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Format Usage Report

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Post Daily Summary to Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.2

Block 16 - Budget Exceeded Threshold?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 17 - Send Urgent Budget Warning

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.2

Block 18 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Monitor GitHub Actions budget and send usage alerts to Slack
Complexity advanced
Nodes 18
Categories DevOps
Author Adriaan van Niekerk
Published 07 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16167/16167.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Monitor GitHub Actions budget and send usage alerts to Slack do?

Quick Overview This workflow runs daily to track GitHub Actions usage across selected repositories, combines recent workflow run stats with GitHub Actions billing data, calculates budget burn rate ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps use case.