test-only #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: issue_comment | |
jobs: | |
issue_commented: | |
# This job only runs for issue comments | |
name: Issue comment | |
if: ${{ !github.event.issue.pull_request }} | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
echo comment on issue $NUMBER | |
echo comment ${{ github.event.comment.body }} | |
echo assignee ${{ github.event.issue.assignees }} | |
echo issue id ${{ github.event.issue.id }} | |
echo comment id ${{ github.event.comment.id }} | |
curl -L \ | |
-X POST \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: Bearer ${{ vars.TOKEN }}" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
https://api.github.com/repos/VincyZhang/intel-extension-for-transformers/issues/${{ github.event.issue.number }}/comments \ | |
-d '{"body":"If you need help, please @NeuralChatBot"}' | |
#curl -L \ | |
# -X PATCH \ | |
# -H "Accept: application/vnd.github+json" \ | |
# -H "Authorization: Bearer ${{ vars.TOKEN }}" \ | |
# -H "X-GitHub-Api-Version: 2022-11-28" \ | |
# https://api.github.com/repos/VincyZhang/intel-extension-for-transformers/issues/comments/${{ github.event.comment.id }} \ | |
# -d '{"body":"If you need help, please @NeuralChatBot"}' | |
env: | |
NUMBER: ${{ github.event.issue.number }} |