Skip to content

Mark Discussion Comment Answer #100

Mark Discussion Comment Answer

Mark Discussion Comment Answer #100

Workflow file for this run

name: Mark Discussion Comment Answer
on:
discussion_comment:
types: [created]
jobs:
mark-comment-answer:
name: Mark a discussion comment as the answer
if: true == true
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
ANSWERABLE: ${{ toJSON(github.event.discussion.category.is_answerable) }}
COMMENTS: ${{ toJSON(github.event.discussion.comments) }}
ANSWER: ${{ toJSON(github.event.discussion.answer_chosen_at) }}
LOCKED: ${{ toJSON(github.event.locked) }}
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: |

Check failure on line 20 in .github/workflows/answer.yml

View workflow run for this annotation

GitHub Actions / Mark Discussion Comment Answer

Invalid workflow file

The workflow is not valid. .github/workflows/answer.yml (Line: 20, Col: 14): Unexpected symbol: '$ANSWERABLE'. Located at position 1 within expression: $ANSWERABLE == true
echo "$ANSWERABLE"
echo ${{ $ANSWERABLE == true }}
echo "$COMMENTS"
echo ${{ ANSWER == null }}
echo ${{ $LOCKED == null }}
echo "$GITHUB_CONTEXT"
- 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 }}"