2021-04-18 15:22:16 +00:00
|
|
|
name: README.md Changed
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'README.md'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
send_notification:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Send notification to README Authors
|
2021-04-18 15:41:12 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-04-18 15:22:16 +00:00
|
|
|
run: |
|
|
|
|
BODY='🤓 @willmcgugan @oleksis @Adilius README.md changed.'
|
|
|
|
DISCUSSIONID='MDEwOkRpc2N1c3Npb24zMzI2MjEw'
|
|
|
|
gh api graphql -H 'GraphQL-Features: discussions_api' -f body="$BODY" -F discussionId="$DISCUSSIONID" -f query='mutation($body: String!, $discussionId: ID!){addDiscussionComment(input:{body: $body , discussionId: $discussionId}){comment{id}}}'
|