Mark Discussion Comment Answer #62
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
name: Mark Discussion Comment Answer | ||
on: | ||
discussion_comment: | ||
types: [created] | ||
if: ${{ github.event.discussion_comment.state == "open" }} && ${{ github.event.discussion_comment.discussion.category.is_answerable == true }} && ${{ github.event.discussion_comment.discussion.answer_chosen_at == null }} && ${{ github.event.discussion_comment.locked == false }} | ||
Check failure on line 6 in .github/workflows/answer.yml GitHub Actions / Mark Discussion Comment AnswerInvalid workflow file
|
||
jobs: | ||
mark-comment-answer: | ||
name: Mark a discussion comment as the answer | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Run Mark Discussion Comment Answer | ||
id: markanswer | ||
uses: ./ | ||
with: | ||
GH_TOKEN: "${{ secrets.DISCUSS_TOKEN }}" | ||
reaction_threshold: 3 | ||
comment_threshold: 3 | ||
- name: Show Mark Answer Output | ||
run: | | ||
echo "discussionId = ${{ steps.markanswer.outputs.discussionId }}" | ||
echo "clientMutationId = ${{ steps.markanswer.outputs.clientMutationId }}" | ||
echo "commentText = ${{ steps.markanswer.outputs.commentText }}" | ||
echo "reactionThreshold = ${{ steps.markanswer.outputs.reactionThreshold }}" | ||
echo "totalReactions = ${{ steps.markanswer.outputs.totalReactions }}" | ||
echo "commentId = ${{ steps.markanswer.outputs.commentId }}" |