diff options
| author | Itamai <53093696+Itamai@users.noreply.github.com> | 2021-04-03 20:18:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-03 20:18:13 +0200 |
| commit | 3bc107d491745a0d1f18e48d8c6c0f74565ae633 (patch) | |
| tree | f32cc31f19888f32a5f9a6d837d95d012d0f9766 /.github | |
| parent | 0d2780290275da4111d27a6d3eace07614882f29 (diff) | |
Hide debug artifacts (#2171)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/nightly_pr_comment.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/nightly_pr_comment.yml b/.github/workflows/nightly_pr_comment.yml index 03e996e9..c6f7528c 100644 --- a/.github/workflows/nightly_pr_comment.yml +++ b/.github/workflows/nightly_pr_comment.yml @@ -37,9 +37,16 @@ jobs: return core.error(`No artifacts found`); } let body = `Download the artifacts for this pull request:\n`; + let hidden_debug_artifacts = `\n\n <details><summary>Only for Developers</summary>\n`; for (const art of artifacts) { - body += `\n* [${art.name}](https://nightly.link/${owner}/${repo}/actions/artifacts/${art.id}.zip)`; + if(art.name.includes('Debug')){ + hidden_debug_artifacts += `\n* [${art.name}](https://nightly.link/${owner}/${repo}/actions/artifacts/${art.id}.zip)`; + }else{ + body += `\n* [${art.name}](https://nightly.link/${owner}/${repo}/actions/artifacts/${art.id}.zip)`; + } } + hidden_debug_artifacts += `\n</details>`; + body += hidden_debug_artifacts; const {data: comments} = await github.issues.listComments({repo, owner, issue_number}); const existing_comment = comments.find((c) => c.user.login === 'github-actions[bot]'); |
