From 5158cdb308790e58d7e441ed127286ac1ef5ef69 Mon Sep 17 00:00:00 2001 From: Mary Date: Sat, 26 Mar 2022 11:38:35 +0100 Subject: [PATCH] infra: Put SDL2 headless release inside a GUI-less block in PR (#3218) As title say. --- .github/workflows/nightly_pr_comment.yml | 9 +++++++-- 1 file 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
GUI-less (SDL2)\n`; let hidden_debug_artifacts = `\n\n
Only for Developers\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
`; hidden_debug_artifacts += `\n
`; + body += hidden_headless_artifacts; body += hidden_debug_artifacts; const {data: comments} = await github.issues.listComments({repo, owner, issue_number});