File tree 1 file changed +14
-4
lines changed
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 90
90
strategy :
91
91
matrix :
92
92
python : ["3.9"]
93
+ # Allows workflow to write comments
94
+ permissions :
95
+ pull-requests : write
96
+ issues : write
93
97
steps :
94
98
- uses : actions/checkout@v4
95
99
- name : Set up Python
@@ -113,8 +117,14 @@ jobs:
113
117
if-no-files-found : error
114
118
retention-days : 30
115
119
- name : Comment Install instructions
116
- uses : mshick/add-pr-comment@v2
120
+ uses : actions/github-script@v7
117
121
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
+ })
You can’t perform that action at this time.
0 commit comments