From 400fd8669a9b1723b8792cc1271acb1a0d26e793 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Wed, 26 Feb 2020 10:13:54 +0900 Subject: [PATCH] Update README --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 49492a6..f5ba205 100644 --- a/README.md +++ b/README.md @@ -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)