Skip to content

Commit 30d8b09

Browse files
committed
Merge branch 'master' into test
2 parents 2702f86 + 9cdd8f6 commit 30d8b09

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.github/workflows/tests_publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,26 @@ jobs:
4545
event_file: ./artifacts/parent-artifacts/event_file/event.json
4646
event_name: ${{ env.original_event }}
4747
files: ./artifacts/**/*.xml
48+
action_fail: true
49+
50+
- name: Report conclusion
51+
uses: actions/github-script@v7
52+
if: always()
53+
with:
54+
script: |
55+
const owner = '${{ github.repository_owner }}';
56+
const repo = '${{ github.repository }}'.split('/')[1];
57+
const sha = '${{ env.original_sha }}';
58+
core.debug(`owner: ${owner}`);
59+
core.debug(`repo: ${repo}`);
60+
core.debug(`sha: ${sha}`);
61+
const { context: name, state } = (await github.rest.repos.createCommitStatus({
62+
context: 'Runtime Tests / Report results (${{ github.event.workflow_run.event }} -> workflow_run -> workflow_run)',
63+
owner: owner,
64+
repo: repo,
65+
sha: sha,
66+
state: '${{ job.status }}',
67+
description: '${{ job.status }}' ? 'Runtime tests successful' : 'Runtime tests failed',
68+
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
69+
})).data;
70+
core.info(`${name} is ${state}`);

.github/workflows/wokwi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ jobs:
151151
core.debug(`repo: ${repo}`);
152152
core.debug(`sha: ${sha}`);
153153
const { context: name, state } = (await github.rest.repos.createCommitStatus({
154-
context: 'Runtime Tests / Wokwi (${{ matrix.type }}, ${{ matrix.chip }}) (${{ github.event.workflow_run.event }} -> workflow_run)',
154+
context: 'Runtime Tests / Wokwi (${{ matrix.type }}, ${{ matrix.chip }}) / Wokwi ${{ matrix.chip }} ${{ matrix.type }} tests (${{ github.event.workflow_run.event }} -> workflow_run)',
155155
owner: owner,
156156
repo: repo,
157157
sha: sha,
@@ -256,7 +256,7 @@ jobs:
256256
core.debug(`repo: ${repo}`);
257257
core.debug(`sha: ${sha}`);
258258
const { context: name, state } = (await github.rest.repos.createCommitStatus({
259-
context: 'Runtime Tests / Wokwi (${{ matrix.type }}, ${{ matrix.chip }}) (${{ github.event.workflow_run.event }} -> workflow_run)',
259+
context: 'Runtime Tests / Wokwi (${{ matrix.type }}, ${{ matrix.chip }}) / Wokwi ${{ matrix.chip }} ${{ matrix.type }} tests (${{ github.event.workflow_run.event }} -> workflow_run)',
260260
owner: owner,
261261
repo: repo,
262262
sha: sha,

0 commit comments

Comments
 (0)