Skip to content

Commit

Permalink
chore(github): try again
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrebb committed Sep 21, 2023
1 parent 19f438a commit d8d2e7d
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/test-backstop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,22 @@ jobs:
echo ERROR_COMMENT_BODY=$FAIL_TABLE >> $GITHUB_OUTPUT
- uses: actions/github-script@v6
if: failure()
if: steps.backstop.outcome != 'success'
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `# 🙈 BackstopJS found some visual changes:
${{ steps.backstop.outputs.ERROR_COMMENT_BODY }}`
body: # 🙈 BackstopJS found some visual changes: ${{ steps.backstop.outputs.ERROR_COMMENT_BODY }}
})
# - name: continue-on-error Comment
# uses: dgrebb/continue-on-error-comment@feature/change-signature
# with:
# repo-token: ${{ secrets.GH_WORKFLOW_TOKEN }}
# outcome: ${{ steps.backstop.outcome }}
# test-id: ${{ steps.backstop.outputs.ERROR_COMMENT_BODY }}
- name: continue-on-error Comment
uses: dgrebb/continue-on-error-comment@feature/change-signature
with:
repo-token: ${{ secrets.GH_WORKFLOW_TOKEN }}
outcome: ${{ steps.backstop.outcome }}
test-id: `${{ steps.backstop.outputs.ERROR_COMMENT_BODY }}`

- name: ⬆ Uploading Test Report
if: always()
Expand Down

0 comments on commit d8d2e7d

Please sign in to comment.