fix: use artifact-url output for direct APK download link

The manually constructed URL was invalid. Use the artifact-url output
from upload-artifact which provides the correct download URL.

https://claude.ai/code/session_0138kUcZaPQoQcAc7nA1KDbf
This commit is contained in:
Claude
2026-03-17 03:34:53 +00:00
parent 39e15a8929
commit af12d13d67
+1 -1
View File
@@ -48,7 +48,7 @@ jobs:
with:
script: |
const runUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
const artifactUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}/artifacts/${{ steps.upload.outputs.artifact-id }}`;
const artifactUrl = `${{ steps.upload.outputs.artifact-url }}`;
const body = `📦 **Benchmark APK ready!**\n\nDownload: [Play Benchmark APK](${artifactUrl})\n\nOr view all artifacts in the [workflow run](${runUrl}#artifacts).`;
await github.rest.repos.createCommitComment({