Skip to content

update descriptions for throttled alarms as well :/ #267

update descriptions for throttled alarms as well :/

update descriptions for throttled alarms as well :/ #267

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 });