Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 578 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 578 Bytes

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.