Skip to content

Commit 2a0bd81

Browse files
committed
Replace PR comment task
1 parent 0f6c8ca commit 2a0bd81

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/development.yml

+15-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Development
22

3+
# Allows workflow to write comments
4+
permissions:
5+
pull-requests: write
6+
issues: write
7+
38
on:
49
pull_request:
510
types: [opened, synchronize, reopened]
@@ -113,8 +118,14 @@ jobs:
113118
if-no-files-found: error
114119
retention-days: 30
115120
- name: Comment Install instructions
116-
uses: mshick/add-pr-comment@v2
121+
uses: actions/github-script@v7
117122
with:
118-
message: |
119-
Build artifacts (.whl and .tar.gz) are available for download for up to 30 days.
120-
They are located at ${{ steps.artifact-upload.outputs.artifact-url }}
123+
github-token: ${{secrets.GITHUB_TOKEN}}
124+
script: |
125+
github.rest.issues.createComment({
126+
issue_number: context.issue.number,
127+
owner: context.repo.owner,
128+
repo: context.repo.repo,
129+
body: 'Build artifacts (.whl and .tar.gz) are available for download for up to 30 days.
130+
They are located at ${{ steps.artifact-upload.outputs.artifact-url }}'
131+
})

0 commit comments

Comments
 (0)