Skip to content

Commit 400fd86

Browse files
committed
Update README
1 parent 0383a7e commit 400fd86

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,25 @@ The simplest response is to add a :tada: reaction to the comment.
179179
reaction-type: hooray
180180
```
181181

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+
182201
## License
183202

184203
[MIT](LICENSE)

0 commit comments

Comments
 (0)