github.com/verrazzano/verrazzano@v1.7.0/.github/workflows/pagerduty.yml (about) 1 # Copyright (c) 2020, 2021, Oracle and/or its affiliates. 2 # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 name: pagerduty-trigger 4 on: 5 issues: 6 types: [opened, reopened] 7 issue_comment: 8 types: [created] 9 jobs: 10 pagerduty: 11 if: ${{ !github.event.issue.pull_request }} 12 env: 13 ROUTING_KEY: ${{ secrets.PAGERDUTY_ROUTING_KEY }} 14 ISSUE_NUMBER: ${{ github.event.issue.number }} 15 runs-on: ubuntu-latest 16 steps: 17 - name: web-request 18 run: | 19 curl -v -k -d '{"routing_key":'"\"$ROUTING_KEY\""',"event_action":"trigger","payload":{"summary":"Issue https://github.com/verrazzano/verrazzano/issues/'"$ISSUE_NUMBER"' has been opened, commented on, or re-opened","source":"user","severity":"critical","component":"verrazzano"}}' -H 'content-type: application/json' -X POST https://events.pagerduty.com/v2/enqueue