Skip to content

Commit

Permalink
action.yml: JToken error again
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Aug 2, 2023
1 parent b680792 commit 9439785
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9439785

Please sign in to comment.