File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,25 @@ The simplest response is to add a :tada: reaction to the comment.
179
179
reaction-type: hooray
180
180
` ` `
181
181
182
+ Another option is to reply with a new comment containing a link to the run output.
183
+
184
+ ` ` ` yml
185
+ - name: Create URL to the run output
186
+ id: vars
187
+ run: echo ::set-output name=run-url::https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
188
+
189
+ - name: Create comment
190
+ uses: peter-evans/create-or-update-comment@v1
191
+ with:
192
+ token: ${{ secrets.REPO_ACCESS_TOKEN }}
193
+ repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
194
+ issue-number: ${{ github.event.client_payload.github.payload.issue.number }}
195
+ body: |
196
+ [Command run output][1]
197
+
198
+ [1]: ${{ steps.vars.outputs.run-url }}
199
+ ` ` `
200
+
182
201
# # License
183
202
184
203
[MIT](LICENSE)
You can’t perform that action at this time.
0 commit comments