@@ -277,13 +277,14 @@ jobs:
277277 env :
278278 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
279279 run : |
280- ARTIFACT_URL=$(gh api repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts --jq '.artifacts[] | select(.name == "graphite-windows-bundle") | .archive_download_url')
280+ ARTIFACT_ID=$(gh api repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts --jq '.artifacts[] | select(.name == "graphite-windows-bundle") | .id')
281+ ARTIFACT_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/$ARTIFACT_ID"
281282 PR_NUMBER="${{ inputs.pr_number }}"
282283 if [ -z "$PR_NUMBER" ]; then
283284 BRANCH=$(git rev-parse --abbrev-ref HEAD)
284285 PR_NUMBER=$(gh pr list --repo ${{ github.repository }} --head "$BRANCH" --json number --jq '.[0].number' 2>/dev/null || true)
285286 fi
286- if [ -n "$PR_NUMBER" ] && [ -n "$ARTIFACT_URL " ]; then
287+ if [ -n "$PR_NUMBER" ] && [ -n "$ARTIFACT_ID " ]; then
287288 gh pr comment "$PR_NUMBER" --repo ${{ github.repository }} --body "| 📦 **Windows Build Complete for** $(git rev-parse HEAD) |
288289 |-|
289290 | [Download artifact]($ARTIFACT_URL) |"
@@ -463,13 +464,14 @@ jobs:
463464 env :
464465 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
465466 run : |
466- ARTIFACT_URL=$(gh api repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts --jq '.artifacts[] | select(.name == "graphite-mac-bundle") | .archive_download_url')
467+ ARTIFACT_ID=$(gh api repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts --jq '.artifacts[] | select(.name == "graphite-mac-bundle") | .id')
468+ ARTIFACT_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/$ARTIFACT_ID"
467469 PR_NUMBER="${{ inputs.pr_number }}"
468470 if [ -z "$PR_NUMBER" ]; then
469471 BRANCH=$(git rev-parse --abbrev-ref HEAD)
470472 PR_NUMBER=$(gh pr list --repo ${{ github.repository }} --head "$BRANCH" --json number --jq '.[0].number' 2>/dev/null || true)
471473 fi
472- if [ -n "$PR_NUMBER" ] && [ -n "$ARTIFACT_URL " ]; then
474+ if [ -n "$PR_NUMBER" ] && [ -n "$ARTIFACT_ID " ]; then
473475 gh pr comment "$PR_NUMBER" --repo ${{ github.repository }} --body "| 📦 **Mac Build Complete for** $(git rev-parse HEAD) |
474476 |-|
475477 | [Download artifact]($ARTIFACT_URL) |"
@@ -595,13 +597,14 @@ jobs:
595597 env :
596598 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
597599 run : |
598- ARTIFACT_URL=$(gh api repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts --jq '.artifacts[] | select(.name == "graphite-linux-bundle") | .archive_download_url')
600+ ARTIFACT_ID=$(gh api repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts --jq '.artifacts[] | select(.name == "graphite-linux-bundle") | .id')
601+ ARTIFACT_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/$ARTIFACT_ID"
599602 PR_NUMBER="${{ inputs.pr_number }}"
600603 if [ -z "$PR_NUMBER" ]; then
601604 BRANCH=$(git rev-parse --abbrev-ref HEAD)
602605 PR_NUMBER=$(gh pr list --repo ${{ github.repository }} --head "$BRANCH" --json number --jq '.[0].number' 2>/dev/null || true)
603606 fi
604- if [ -n "$PR_NUMBER" ] && [ -n "$ARTIFACT_URL " ]; then
607+ if [ -n "$PR_NUMBER" ] && [ -n "$ARTIFACT_ID " ]; then
605608 gh pr comment "$PR_NUMBER" --repo ${{ github.repository }} --body "| 📦 **Linux Build Complete for** $(git rev-parse HEAD) |
606609 |-|
607610 | [Download artifact]($ARTIFACT_URL) |"
0 commit comments