Skip to content

Commit

Permalink
Result icon should depend on result of the diff test
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-k committed Dec 8, 2023
1 parent eea3c7f commit d4d8651
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ runs:
npm run ${{ inputs.test-name }} --prefix ${{ inputs.npm-prefix }}
- name: compare screenshots
id: diff-test
if: ${{ !inputs.skip }}
shell: sh
run: |
Expand Down Expand Up @@ -137,7 +138,7 @@ runs:
env:
SLACK_WEBHOOK_URL: ${{ inputs.slack-webhook-url }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
result_icon: ${{ steps.deploy-diff-rep.conclusion == 'success' && ':white_check_mark:' || ':x:' }}
result_icon: ${{ steps.diff-test.conclusion == 'success' && ':white_check_mark:' || ':x:' }}

- name: after ${{ inputs.test-name }}
if: ${{ inputs.after && !inputs.skip }}
Expand Down

0 comments on commit d4d8651

Please sign in to comment.