rich/.github/workflows/readmechanged.yml
dependabot[bot] 21c0f25869
Bump actions/checkout from 2 to 4 (#3122)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 12:03:59 +00:00

24 lines
902 B
YAML

name: README.md Changed
on:
push:
branches:
- master
paths:
- 'README.md'
jobs:
send_notification:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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/willmcgugan/rich/commit/$GIT_SHA) 👀"
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}}}'