Home

Awesome

GitHub release GitHub marketplace Test workflow Codecov Become a sponsor Paypal Donate

About

A GitHub Action to check GitHub Status in your workflow.


Features

Usage

Basic workflow

The following workflow is purely informative and will only display the current status of GitHub services:

GitHub Status - OK

name: build

on: push

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      -
        name: Check GitHub Status
        uses: crazy-max/ghaction-github-status@v4
      -
        name: Checkout
        uses: actions/checkout@v3

Trigger error if GitHub services are down

In the example below, we will set some status thresholds so that the job can fail if these thresholds are exceeded.

This can be useful if you have an action that publishes to GitHub Pages, but the service is down.

GitHub Status - Failed

name: build

on: push

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      -
        name: Check GitHub Status
        uses: crazy-max/ghaction-github-status@v4
        with:
          overall_threshold: minor
          pages_threshold: partial_outage
      -
        name: Checkout
        uses: actions/checkout@v3

Customizing

inputs

Following inputs can be used as step.with keys

NameTypeDescription
overall_threshold¹StringDefines threshold for overall status (also called rollup) of GitHub to fail the job
git_threshold²StringDefines threshold for Git Operations to fail the job
api_threshold²StringDefines threshold for API Requests to fail the job
webhooks_threshold²StringDefines threshold for Webhooks to fail the job
issues_threshold²StringDefines threshold for Issues to fail the job
prs_threshold²StringDefines threshold for Pull Requests to fail the job
actions_threshold²StringDefines threshold for Actions to fail the job
packages_threshold²StringDefines threshold for Packages to fail the job
pages_threshold²StringDefines threshold for Pages to fail the job
codespaces_threshold²StringDefines threshold for Codespaces to fail the job
copilot_threshold²StringDefines threshold for Copilot to fail the job

Contributing

Want to contribute? Awesome! The most basic way to show your support is to star the project, or to raise issues. You can also support this project by becoming a sponsor on GitHub or by making a PayPal donation to ensure this journey continues indefinitely!

Thanks again for your support, it is much appreciated! :pray:

License

MIT. See LICENSE for more details.