Skip to content

Commit 23db916

Browse files
authored
Update deploy-preview.yml
1 parent 3e27346 commit 23db916

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

.github/workflows/deploy-preview.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -190,27 +190,27 @@ jobs:
190190
name: visual_diffs
191191
path: visual_diffs
192192

193-
- name: Comment PR with results
194-
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
195-
uses: actions/github-script@v7
196-
with:
197-
github-token: ${{ secrets.GITHUB_TOKEN }}
198-
script: |
199-
const fs = require('fs');
200-
const results = JSON.parse(fs.readFileSync('visual_diffs/results.json', 'utf8'));
201-
const runUrl = `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`;
202-
let body = `### Visual Diff Summary\n\n[View Logs](${runUrl})\n\n`;
203-
body += `Total: ${results.summary.total}, Matches: ${results.summary.matches}, Diffs: ${results.summary.mismatches}, Skipped: ${results.summary.skipped}\n\n`;
204-
if (results.pages.length) {
205-
body += '| Page | Status |\n| --- | --- |\n';
206-
for (const p of results.pages) {
207-
if (p.status !== 'match') {
208-
body += `| ${p.path} | ${p.status} |\n`;
209-
}
210-
}
211-
}
212-
await github.rest.issues.createComment({
213-
...context.repo,
214-
issue_number: context.issue.number,
215-
body
216-
});
193+
# - name: Comment PR with results
194+
# if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
195+
# uses: actions/github-script@v7
196+
# with:
197+
# github-token: ${{ secrets.GITHUB_TOKEN }}
198+
# script: |
199+
# const fs = require('fs');
200+
# const results = JSON.parse(fs.readFileSync('visual_diffs/results.json', 'utf8'));
201+
# const runUrl = `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`;
202+
# let body = `### Visual Diff Summary\n\n[View Logs](${runUrl})\n\n`;
203+
# body += `Total: ${results.summary.total}, Matches: ${results.summary.matches}, Diffs: ${results.summary.mismatches}, Skipped: ${results.summary.skipped}\n\n`;
204+
# if (results.pages.length) {
205+
# body += '| Page | Status |\n| --- | --- |\n';
206+
# for (const p of results.pages) {
207+
# if (p.status !== 'match') {
208+
# body += `| ${p.path} | ${p.status} |\n`;
209+
# }
210+
# }
211+
# }
212+
# await github.rest.issues.createComment({
213+
# ...context.repo,
214+
# issue_number: context.issue.number,
215+
# body
216+
# });

0 commit comments

Comments
 (0)