From 1f1392b8b66b47f73964c5dc0ebc1041dd6a6d8d Mon Sep 17 00:00:00 2001 From: oleksis Date: Sun, 18 Apr 2021 11:22:16 -0400 Subject: [PATCH] Add README workflow --- .github/workflows/readmechanged.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/readmechanged.yml diff --git a/.github/workflows/readmechanged.yml b/.github/workflows/readmechanged.yml new file mode 100644 index 00000000..9eac35dc --- /dev/null +++ b/.github/workflows/readmechanged.yml @@ -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}}}'