forked from Shinonome/dots-hyprland
Update GitHub Actions to use GraphQL for comments
This commit is contained in:
@@ -12,5 +12,20 @@ jobs:
|
|||||||
- name: Create comment on discussion #2140
|
- name: Create comment on discussion #2140
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# https://docs.github.com/en/graphql/reference/mutations#adddiscussioncomment
|
||||||
run: |
|
run: |
|
||||||
gh discussion comment 2140 --body "dist-arch/ directory has changed in commit ${{ github.sha }} by ${{ github.actor }}."
|
gh api graphql -f query='
|
||||||
|
mutation {
|
||||||
|
addDiscussionComment(
|
||||||
|
input: {
|
||||||
|
discussionId: "DISCUSSION_ID",
|
||||||
|
body: "dist-arch/ directory has changed in commit ${{ github.sha }} by ${{ github.actor }}."
|
||||||
|
}
|
||||||
|
) {
|
||||||
|
comment {
|
||||||
|
id
|
||||||
|
body
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
'
|
||||||
|
|||||||
Reference in New Issue
Block a user