Skip to content

Commit 964b7a8

Browse files
authored
chore(build): update comment-pr.yml
1 parent 3363fc7 commit 964b7a8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/comment-pr.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ jobs:
2727
2828
LINUX_ARTIFACT_ID=$(gh api "/repos/$OWNER/$REPO/actions/artifacts" --jq ".artifacts.[] | select(.workflow_run.id==$PREVIOUS_JOB_ID) | select(.expired==false) | select(.name==\"linux-app.AppImage\") | .id")
2929
WIN_ARTIFACT_ID=$(gh api "/repos/$OWNER/$REPO/actions/artifacts" --jq ".artifacts.[] | select(.workflow_run.id==$PREVIOUS_JOB_ID) | select(.expired==false) | select(.name==\"win-app.exe\") | .id")
30-
MACOS_ARTIFACT_ID=$(gh api "/repos/$OWNER/$REPO/actions/artifacts" --jq ".artifacts.[] | select(.workflow_run.id==$PREVIOUS_JOB_ID) | select(.expired==false) | select(.name==\"macos-app.dmg\") | .id")
30+
MACOS_x64_ARTIFACT_ID=$(gh api "/repos/$OWNER/$REPO/actions/artifacts" --jq ".artifacts.[] | select(.workflow_run.id==$PREVIOUS_JOB_ID) | select(.expired==false) | select(.name==\"macos-app-x64.dmg\") | .id")
31+
MACOS_arm64_ARTIFACT_ID=$(gh api "/repos/$OWNER/$REPO/actions/artifacts" --jq ".artifacts.[] | select(.workflow_run.id==$PREVIOUS_JOB_ID) | select(.expired==false) | select(.name==\"macos-app-arm64.dmg\") | .id")
3132
echo "LINUX_ARTIFACT_ID=$LINUX_ARTIFACT_ID" >> "$GITHUB_ENV"
3233
echo "WIN_ARTIFACT_ID=$WIN_ARTIFACT_ID" >> "$GITHUB_ENV"
33-
echo "MACOS_ARTIFACT_ID=$MACOS_ARTIFACT_ID" >> "$GITHUB_ENV"
34+
echo "MACOS_x64_ARTIFACT_ID=$MACOS_x64_ARTIFACT_ID" >> "$GITHUB_ENV"
35+
echo "MACOS_arm64_ARTIFACT_ID=$MACOS_arm64_ARTIFACT_ID" >> "$GITHUB_ENV"
3436
3537
PR_NUMBER=$(jq -r '.pull_requests[0].number' <<< "$WORKFLOW_RUN_EVENT_OBJ")
3638
echo "PR_NUMBER=$PR_NUMBER" >> "$GITHUB_ENV"
@@ -51,6 +53,7 @@ jobs:
5153
5254
| Name | Platform | Link |
5355
|-----------|----------|------|
54-
| win-app.exe | Windows | [Link](https://github.com/${{github.repository_owner}}/${{github.event.repository.name}}/actions/runs/${{ env.PREVIOUS_JOB_ID }}/artifacts/${{ env.WIN_ARTIFACT_ID }}) |
55-
| macos-app.dmg | MacOS | [Link](https://github.com/${{github.repository_owner}}/${{github.event.repository.name}}/actions/runs/${{ env.PREVIOUS_JOB_ID }}/artifacts/${{ env.MACOS_ARTIFACT_ID }}) |
56-
| linux-app.AppImage | Linux | [Link](https://github.com/${{github.repository_owner}}/${{github.event.repository.name}}/actions/runs/${{ env.PREVIOUS_JOB_ID }}/artifacts/${{ env.LINUX_ARTIFACT_ID }}) |
56+
| win-app.exe | Windows (x64) | [Link](https://github.com/${{github.repository_owner}}/${{github.event.repository.name}}/actions/runs/${{ env.PREVIOUS_JOB_ID }}/artifacts/${{ env.WIN_ARTIFACT_ID }}) |
57+
| macos-app-x64.dmg | MacOS (x64) | [Link](https://github.com/${{github.repository_owner}}/${{github.event.repository.name}}/actions/runs/${{ env.PREVIOUS_JOB_ID }}/artifacts/${{ env.MACOS_x64_ARTIFACT_ID }}) |
58+
| macos-app-arm64.dmg | MacOS (arm64) | [Link](https://github.com/${{github.repository_owner}}/${{github.event.repository.name}}/actions/runs/${{ env.PREVIOUS_JOB_ID }}/artifacts/${{ env.MACOS_arm64_ARTIFACT_ID }}) |
59+
| linux-app.AppImage | Linux (x64) | [Link](https://github.com/${{github.repository_owner}}/${{github.event.repository.name}}/actions/runs/${{ env.PREVIOUS_JOB_ID }}/artifacts/${{ env.LINUX_ARTIFACT_ID }}) |

0 commit comments

Comments
 (0)