Skip to content

Commit

Permalink
ci: react +1 on comment that triggered execution
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Nov 2, 2023
1 parent 886cee6 commit da62218
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
echo $GPTME_COMMAND
echo "EOFMAGIC"
} >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
fi
- name: Fail if author not on whitelist
Expand All @@ -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
Expand Down

0 comments on commit da62218

Please sign in to comment.