Skip to content

Commit ba09884

Browse files
committed
test
1 parent 90fa1bc commit ba09884

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
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}`);

0 commit comments

Comments
 (0)