Skip to content

Commit 0067dae

Browse files
committed
Replace PR comment task
1 parent 0f6c8ca commit 0067dae

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/development.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ jobs:
9090
strategy:
9191
matrix:
9292
python: ["3.9"]
93+
# Allows workflow to write comments
94+
permissions:
95+
pull-requests: write
96+
issues: write
9397
steps:
9498
- uses: actions/checkout@v4
9599
- name: Set up Python
@@ -113,8 +117,14 @@ jobs:
113117
if-no-files-found: error
114118
retention-days: 30
115119
- name: Comment Install instructions
116-
uses: mshick/add-pr-comment@v2
120+
uses: actions/github-script@v7
117121
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 }}
122+
github-token: ${{secrets.GITHUB_TOKEN}}
123+
script: |
124+
github.rest.issues.createComment({
125+
issue_number: context.issue.number,
126+
owner: context.repo.owner,
127+
repo: context.repo.repo,
128+
body: 'Build artifacts (.whl and .tar.gz) are available for download for up to 30 days.
129+
They are located at ${{ steps.artifact-upload.outputs.artifact-url }}'
130+
})

0 commit comments

Comments
 (0)