name: README.md Changed

on: 
  push:
    paths:
      - 'README.md'

jobs:
  send_notification:
    runs-on: ubuntu-latest
    steps:
    - name: Send notification to README Authors
      env:
        GITHUB_TOKEN: ${{ secrets.GHP_README_WORKFLOW }}
      run: |
        BODY='🤓 @willmcgugan @oleksis @Adilius README.md changed 📝'
        DISCUSSIONID='MDEwOkRpc2N1c3Npb24zMzI2NzM0'
        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}}}'

name: README.md Changed

on: 
  push:
    paths:
      - 'README.md'

jobs:
  send_notification:
    runs-on: ubuntu-latest
    steps:
    - name: Send notification to README Authors
      env:
        GITHUB_TOKEN: ${{ secrets.GHP_README_WORKFLOW }}
        GIT_SHA: ${{ github.sha }}
      run: |
        COMMIT=$(git rev-parse --short "$GIT_SHA")
        AUTHORS='@willmcgugan @oleksis @Adilius'
        BODY="🤓 $AUTHORS README.md changed 📝. Check the [commit $COMMIT](https://github.com/oleksis/rich/commit/$GIT_SHA) 👀"
        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}}}'

Add commit SHA info to the body message
Add commit SHA info to the body message
