Update README

This commit is contained in:
Peter Evans
2020-02-26 10:13:54 +09:00
parent 0383a7ed14
commit 400fd8669a
+19
View File
@@ -179,6 +179,25 @@ The simplest response is to add a :tada: reaction to the comment.
reaction-type: hooray
```
Another option is to reply with a new comment containing a link to the run output.
```yml
- name: Create URL to the run output
id: vars
run: echo ::set-output name=run-url::https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
- name: Create comment
uses: peter-evans/create-or-update-comment@v1
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
issue-number: ${{ github.event.client_payload.github.payload.issue.number }}
body: |
[Command run output][1]
[1]: ${{ steps.vars.outputs.run-url }}
```
## License
[MIT](LICENSE)