From 9439785b5b551809add0c43b417d5d8084f955a5 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Wed, 2 Aug 2023 11:43:54 +0200 Subject: [PATCH] action.yml: JToken error again --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index fc06d2d8..a17ea9e8 100644 --- a/action.yml +++ b/action.yml @@ -347,7 +347,7 @@ runs: if: ${{ steps.reviewdog-enabled-pr.outputs.result == 'true' }} uses: actions/github-script@v6 env: - ASSIGNEES: ${{ fromJson(steps.assignees-after.outputs.result) }} + ASSIGNEES: ${{ steps.assignees-after.outputs.result && fromJson(steps.assignees-after.outputs.result) }} with: script: | const { ASSIGNEES } = process.env; @@ -456,7 +456,7 @@ runs: - if: ${{ steps.reviewdog-enabled-pr.outputs.result == 'true' }} id: assignees-slack env: - ASSIGNEES: ${{fromJson(steps.assignees-after.outputs.result)}} + ASSIGNEES: ${{steps.assignees-after.outputs.result && fromJson(steps.assignees-after.outputs.result)}} run: echo "result=$(echo "$ASSIGNEES" | sed 's|\([^ ]\)|@\1|' | tr -s '\n' ' ')" >> $GITHUB_OUTPUT shell: bash - uses: actions-ecosystem/action-slack-notifier@v1