Skip to content

Commit 083a51f

Browse files
committed
Use the action
1 parent cc7fc41 commit 083a51f

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.github/actions/reports-group/attach-check-run-to-triggering-workflow-action/dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/reports-group/attach-check-run-to-triggering-workflow-action/dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/reports-group/attach-check-run-to-triggering-workflow-action/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,18 @@ async function run() {
3737
if (!isEmpty(outputTitle) || !isEmpty(outputSummary)) {
3838
res.output = {title: undefinedIfEmpty(outputTitle), summary: undefinedIfEmpty(outputSummary)};
3939
}
40-
core.debug('API params=' + JSON.stringify(res));
4140
}
4241
);
42+
core.debug('API params=' + JSON.stringify(requestParams));
4343

44-
const { data: checkRun } = await core.group('Call API', async () => {
44+
const apiResponse = await core.group('Call API', async () => {
4545
const octokit = github.getOctokit(githubToken);
4646

47-
return octokit.rest.checks.create(requestParams);
47+
return octokit.request('POST /repos/{owner}/{repo}/check-runs', requestParams);
4848
});
49+
core.info('TMP DEBUG' + JSON.stringify(apiResponse));
4950

50-
core.setOutput('check-run-id', checkRun.id);
51+
core.setOutput('check-run-id', apiResponse.data.id);
5152
}
5253

5354
/**

.github/workflows/codecov-upload-from-artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
- name: Checkout Repository
114114
uses: actions/checkout@v4
115115

116-
- uses: ./custom-action-repo/.github/actions/reports-group/attach-check-run-to-triggering-workflow-action
116+
- uses: .github/actions/reports-group/attach-check-run-to-triggering-workflow-action
117117
with:
118118
name: "${{ github.workflow }} (${{ github.event.workflow.name}}) / Codecov / ${{ matrix.artifact}} - ${{ matrix.path }}"
119119
commit-sha: "${{ ('workflow_run' == github.event_name && ('pull_request' == github.event.workflow_run.event || 'push' == github.event.workflow_run.event) && github.event.workflow_run.head_sha) || ('pull_request' == github.event_name && github.event.pull_request.head.sha) || ('push' == github.event_name && github.sha) || null }}"

0 commit comments

Comments
 (0)