aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary <mary@mary.zone>2022-03-26 11:38:35 +0100
committerGitHub <noreply@github.com>2022-03-26 11:38:35 +0100
commit5158cdb308790e58d7e441ed127286ac1ef5ef69 (patch)
tree31c842833182100ed2b57c207b517b04fe7c8a16
parent1402d8391d84f912110104e3e6c1a50a8c000d59 (diff)
infra: Put SDL2 headless release inside a GUI-less block in PR (#3218)1.1.85
As title say.
-rw-r--r--.github/workflows/nightly_pr_comment.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/nightly_pr_comment.yml b/.github/workflows/nightly_pr_comment.yml
index 7145b7b6..36a12ea9 100644
--- a/.github/workflows/nightly_pr_comment.yml
+++ b/.github/workflows/nightly_pr_comment.yml
@@ -36,15 +36,20 @@ jobs:
return core.error(`No artifacts found`);
}
let body = `Download the artifacts for this pull request:\n`;
+ let hidden_headless_artifacts = `\n\n <details><summary>GUI-less (SDL2)</summary>\n`;
let hidden_debug_artifacts = `\n\n <details><summary>Only for Developers</summary>\n`;
for (const art of artifacts) {
- if(art.name.includes('Debug')){
+ if(art.name.includes('Debug')) {
hidden_debug_artifacts += `\n* [${art.name}](https://nightly.link/${owner}/${repo}/actions/artifacts/${art.id}.zip)`;
- }else{
+ } else if(art.name.includes('headless-sdl2')) {
+ hidden_headless_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_headless_artifacts += `\n</details>`;
hidden_debug_artifacts += `\n</details>`;
+ body += hidden_headless_artifacts;
body += hidden_debug_artifacts;
const {data: comments} = await github.issues.listComments({repo, owner, issue_number});