diff --git a/.github/workflows/bot.yml b/.github/workflows/bot.yml index dd03f66b..fdf7d1f0 100644 --- a/.github/workflows/bot.yml +++ b/.github/workflows/bot.yml @@ -42,7 +42,7 @@ jobs: echo $GPTME_COMMAND echo "EOFMAGIC" } >> $GITHUB_OUTPUT - cat $GITHUB_OUTPUT + fi - name: Fail if author not on whitelist @@ -58,6 +58,14 @@ jobs: echo "Author ${COMMENT_AUTHOR} is on the whitelist." fi + - name: React to comment + env: + REPO_NAME: ${{ github.event.repository.name }} + USER_NAME: ${{ github.event.repository.owner.login }} + COMMENT_ID: ${{ github.event.comment.id }} + run: | + gh api /repos/$USER_NAME/$REPO_NAME/issues/comments/$COMMENT_ID/reactions -X POST -f content='+1' + execute-command: needs: check-comment if: needs.check-comment.outputs.gptme_command