mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix: mergeWorkflowUrl initialization (#24238)
This commit is contained in:
parent
97d55e275d
commit
b11fa7435b
2
.github/workflows/create_test_report.yml
vendored
2
.github/workflows/create_test_report.yml
vendored
@ -95,6 +95,7 @@ jobs:
|
||||
const reportDir = 'run-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}-${{ github.sha }}';
|
||||
const reportUrl = `https://mspwblobreport.z1.web.core.windows.net/${reportDir}/index.html`;
|
||||
core.notice('Report url: ' + reportUrl);
|
||||
const mergeWorkflowUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
|
||||
const reportMd = await fs.promises.readFile('report.md', 'utf8');
|
||||
const { data: response } = await github.rest.issues.createComment({
|
||||
...context.repo,
|
||||
@ -108,7 +109,6 @@ jobs:
|
||||
});
|
||||
core.info('Posted comment: ' + response.html_url);
|
||||
|
||||
const mergeWorkflowUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
|
||||
const check = await github.rest.checks.create({
|
||||
...context.repo,
|
||||
name: 'Merge report (${{ github.event.workflow_run.name }})',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user