Coder Social home page Coder Social logo

pagerduty-oncall-action's Introduction

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.

pagerduty-oncall-action's People

Contributors

mxie avatar

Stargazers

Alex Cyphus avatar Anne Thorpe avatar

Watchers

 avatar Alex Cyphus avatar

pagerduty-oncall-action's Issues

Update dependencies to avoid deprecated versions

@mxie When using this Action in my workflow (which is incredibly helpful ๐Ÿ™Œ) I get the following warnings:

  1. The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

  2. Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: mxie/pagerduty-oncall-action@main. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

I think bumping the Node version to 20 and the @actions/core version to the latest is all that is needed.

Perhaps enabling dependabot version updates on this repository would make it easier ๐Ÿ˜€ https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/about-dependabot-version-updates

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.