Skip to content
alert-circle

GitHub Action

Automatic OpsGenie alert creation

v2 Latest version

Automatic OpsGenie alert creation

alert-circle

Automatic OpsGenie alert creation

Create an alert in OpsGenie for the specified GitHub issue

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Automatic OpsGenie alert creation

uses: ricardofelgueiras/opsgenie-create-alert-action@v2

Learn more about this action in ricardofelgueiras/opsgenie-create-alert-action

Choose a version

OpsGenie alert creation

This action creates an alert in OpsGenie (via API) for a specified issue. Note: the issue must have a label containing the priority (P1, P2, P3, P4 or P5)

Inputs

api-key

Required OpsGenie API Key.

opsgenie-api-url

Required OpsGenie API URL.

github-token

Required GitHub API Token.

Example usage

uses: ricardofelgueiras/opsgenie-create-alert-action@v2
with:
  api-key: "${{ secrets.OPSGENIE_APIKEY }}"
  opsgenie-api-url: "${{ secrets.OPSGENIE_URL }}"
  github-token: "${{ secrets.GITHUB_TOKEN }}"