Update create-discord-thread.yml
This commit is contained in:
parent
4d26de5d8e
commit
667a7422cf
13
.github/workflows/create-discord-thread.yml
vendored
13
.github/workflows/create-discord-thread.yml
vendored
@ -5,6 +5,9 @@ on:
|
||||
types:
|
||||
- labeled
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
jobs:
|
||||
post_to_discord:
|
||||
runs-on: ubuntu-latest
|
||||
@ -101,3 +104,13 @@ jobs:
|
||||
echo "Failed to create Discord post! Status code: $STATUS_CODE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Comment on Issue
|
||||
id: comment_on_issue
|
||||
env:
|
||||
MESSAGE: ${{ env.message }}
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
echo -e "$MESSAGE" > comment.txt
|
||||
sed -i '/Discussion & issue tracking:/,$d' comment.txt
|
||||
gh issue comment ${{ github.event.issue.number }} --repo ${{ github.repository }} --body-file comment.txt
|
||||
|
Loading…
x
Reference in New Issue
Block a user