Skip to content

Commit 53b0315

Browse files
committed
Use 'gh' command to download artifacts
1 parent 501ff12 commit 53b0315

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/post-pr-comment.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Download artifact
16-
uses: dawidd6/action-download-artifact@af92a8455a59214b7b932932f2662fdefbd78126
17-
with:
18-
workflow: ${{ github.event.workflow_run.workflow_id }}
19-
workflow_conclusion: success
20-
name: comment
16+
run: gh run download "${{ github.event.workflow_run.id }}" --repo "${{ github.repository }}" --name "comment"
17+
env:
18+
GITHUB_TOKEN: ${{ github.token }}
2119
- run: |
2220
PR=$(grep -o '^[0-9]\+$' pr.txt)
2321
PR_HEAD_SHA=$(gh api "/repos/${{ github.repository }}/pulls/${PR}" --jq .head.sha)

0 commit comments

Comments
 (0)