mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-04 14:47:37 +03:00
fix: update firmware artifact link in PR comment to point to the UI
This commit is contained in:
parent
cb95ddbd04
commit
c008d238d5
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -114,7 +114,8 @@ jobs:
|
|||||||
});
|
});
|
||||||
const firmwareArtifact = artifacts.artifacts.find((artifact) => artifact.name === artifactName);
|
const firmwareArtifact = artifacts.artifacts.find((artifact) => artifact.name === artifactName);
|
||||||
if (firmwareArtifact) {
|
if (firmwareArtifact) {
|
||||||
firmwareLine = `Firmware: [firmware.bin artifact](${firmwareArtifact.archive_download_url})`;
|
const artifactUiUrl = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}/artifacts/${firmwareArtifact.id}`;
|
||||||
|
firmwareLine = `Firmware: [firmware.bin artifact](${artifactUiUrl})`;
|
||||||
} else {
|
} else {
|
||||||
firmwareLine = `Firmware: artifact not found (${artifactName})`;
|
firmwareLine = `Firmware: artifact not found (${artifactName})`;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user