Add README workflow

This commit is contained in:
oleksis 2021-04-18 11:22:16 -04:00
parent 704c8252ec
commit 1f1392b8b6
1 changed files with 16 additions and 0 deletions

16
.github/workflows/readmechanged.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: README.md Changed
on:
push:
paths:
- 'README.md'
jobs:
send_notification:
runs-on: ubuntu-latest
steps:
- name: Send notification to README Authors
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}}}'