File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 45
45
event_file : ./artifacts/parent-artifacts/event_file/event.json
46
46
event_name : ${{ env.original_event }}
47
47
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}`);
You can’t perform that action at this time.
0 commit comments