Skip to content

Commit

Permalink
Indicate actual repository storing the build artifacts in comment
Browse files Browse the repository at this point in the history
when using a repo other than qgis/QGIS, let's ensure to provide the correct link
and not point to upstream repo
  • Loading branch information
DelazJ authored and nyalldawson committed Jan 19, 2024
1 parent 585123a commit a141524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_artifact_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ jobs:
});
const PREFIX = "## 🪟 Windows builds ready!";
let body = PREFIX + "\n\n" +
"Windows builds of this PR are available for testing [here](https://github.com/qgis/QGIS/suites/" + context.payload.workflow_run.check_suite_id + "/artifacts/${{steps.download_artifact.outputs.artifact_id}}).";
"Windows builds of this PR are available for testing [here](https://github.com/" + context.repo.owner + "/" + context.repo.repo + "/suites/" + context.payload.workflow_run.check_suite_id + "/artifacts/${{steps.download_artifact.outputs.artifact_id}}).";
if ( ${{steps.download_artifact.outputs.debug_symbols_artifact_id}} > 0 )
{
body += " Debug symbols for this build are available [here](https://github.com/qgis/QGIS/suites/" + context.payload.workflow_run.check_suite_id + "/artifacts/${{steps.download_artifact.outputs.debug_symbols_artifact_id}}).";
body += " Debug symbols for this build are available [here](https://github.com/" + context.repo.owner + "/" + context.repo.repo + "/suites/" + context.payload.workflow_run.check_suite_id + "/artifacts/${{steps.download_artifact.outputs.debug_symbols_artifact_id}}).";
}
body += "\n\n*(Built from commit " + git_sha + ")*";
Expand Down

0 comments on commit a141524

Please sign in to comment.