Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix: mergeWorkflowUrl initialization (#24238)

Yury Semikhatskyb11fa7435b8c
diff --git a/.github/workflows/create_test_report.yml b/.github/workflows/create_test_report.yml
index 050fd241fd..f582de3e58 100644
--- a/.github/workflows/create_test_report.yml
+++ b/.github/workflows/create_test_report.yml
@@ -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 }})',