File: readmechanged.yml

package info (click to toggle)
rich 13.9.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,284 kB
  • sloc: python: 29,157; makefile: 29
file content (24 lines) | stat: -rw-r--r-- 902 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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}}}'