Skip to content

Commit

Permalink
Use correct artifact for PR comment (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored Dec 6, 2024
1 parent d87b014 commit 52d1caa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ jobs:
repo: context.repo.repo,
run_id: context.runId,
})
const url = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}/artifacts/${artifacts['data']['artifacts'][0]['id']}`
const artifact = artifacts['data']['artifacts'].find(a => a.name === 'home-assistant-voice')
const url = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}/artifacts/${artifact['id']}`
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
Expand Down

0 comments on commit 52d1caa

Please sign in to comment.