Skip to content
bell

GitHub Action

PagerDuty On-call

v1.2 Latest version

PagerDuty On-call

bell

PagerDuty On-call

Find out who's on call next for a given schedule

Installation

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

              

- name: PagerDuty On-call

uses: mxie/[email protected]

Learn more about this action in mxie/pagerduty-oncall-action

Choose a version

PagerDuty On-call Action

A GitHub Action to find the next person on call through PagerDuty.

Usage

name: Find next person on call
on:
  schedule:
    - cron: 0 8 * * 1
jobs:
  run-action:
    runs-on: ubuntu-latest
    steps:
    - name: Ask PagerDuty
      id: pagerduty
      uses: mxie/pagerduty-oncall-action@main    # replace `main` with release tag
      with:
        token: ${{ secrets.PAGERDUTY_TOKEN }}
        schedule-id: ABCDEFG
    - run: echo ${{ steps.pagerduty.outputs.person }} is on call

See action.yml for accepted inputs.