Add Pinpoint metrics and alarms #259
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Edited alarms on pull requests" | |
on: | |
pull_request: | |
types: [review_requested] | |
paths: | |
- "**alarms**.tf" | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
comment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Comment PR' | |
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const { issue: { number: issue_number }, repo: { owner, repo } } = context; | |
const body = 'Updating alarms :alarm_clock:? Great! Please update the [Google Sheet](https://docs.google.com/spreadsheets/d/1gkrL3Trxw0xEkX724C1bwpfeRsTlK2X60wtCjF6MFRA/edit) and add a :thumbsup: to this message after :pray:'; | |
github.rest.issues.createComment({ issue_number, owner, repo, body }); |