Crash/Vanish when returning object with a field as null into a display panel. #36
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: "Comment on issues by label" | |
on: | |
issues: | |
types: [labeled] | |
jobs: | |
comment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: get comment count | |
id: getCommentCount | |
env: | |
comments: ${{ github.event.issue.comments }} | |
run: | | |
echo "$comments" | |
CL=$(echo $comments | jq '. | length' ) | |
echo "::set-output name=comments_length::$CL" | |
- uses: actions/checkout@v2 | |
if: steps.getCommentCount.outputs.comments_length == 0 | |
- uses: peaceiris/actions-label-commenter@v1 | |
if: steps.getCommentCount.outputs.comments_length == 0 | |
with: | |
github_token: ${{ secrets.PAT }} | |
config_file: .github/issue-commenter.yml |