GitHub Action
GitHub Status
A GitHub Action to check GitHub Status in your workflow.
If you are interested, check out my other GitHub Actions!
- Threshold management for each GitHub service or global (rollup)
- Display status of all services
- Display active incidents and updates
The following workflow is purely informative and will only display the current status of GitHub services:
name: build
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Check GitHub Status
uses: crazy-max/ghaction-github-status@v1
-
name: Checkout
uses: actions/checkout@v2
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.
name: build
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Check GitHub Status
uses: crazy-max/ghaction-github-status@v1
with:
overall_threshold: minor
pages_threshold: partial_outage
-
name: Checkout
uses: actions/checkout@v2
Following inputs can be used as step.with
keys
Name | Type | Description |
---|---|---|
overall_threshold ¹ |
String | Defines threshold for overall status (also called rollup) of GitHub to fail the job |
git_threshold ² |
String | Defines threshold for Git Operations to fail the job |
api_threshold ² |
String | Defines threshold for API Requests to fail the job |
webhooks_threshold ² |
String | Defines threshold for Webhooks to fail the job |
issues_threshold ² |
String | Defines threshold for Issues to fail the job |
prs_threshold ² |
String | Defines threshold for Pull Requests to fail the job |
actions_threshold ² |
String | Defines threshold for GitHub Actions to fail the job |
packages_threshold ² |
String | Defines threshold for GitHub Packages to fail the job |
pages_threshold ² |
String | Defines threshold for GitHub Pages to fail the job |
- ¹ Accepted values are
minor
,major
orcritical
.- ² Accepted values are
operational
,degraded_performance
,partial_outage
ormajor_outage
.
Since Dependabot
has native GitHub Actions support,
to enable it on your GitHub repo all you need to do is add the .github/dependabot.yml
file:
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
All kinds of contributions are welcome 🙌! 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! 🙏
MIT. See LICENSE
for more details.