From 27e8a88605ff81cafd187d0a1028e511468dafda Mon Sep 17 00:00:00 2001 From: Subin Mathew Date: Thu, 11 Nov 2021 22:25:44 +0530 Subject: [PATCH] Post comment on PRs with link to test workflow runs (#9122) --- .github/workflows/integration-tests-command.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/integration-tests-command.yml b/.github/workflows/integration-tests-command.yml index 5e3332740d..7a7b699ce2 100644 --- a/.github/workflows/integration-tests-command.yml +++ b/.github/workflows/integration-tests-command.yml @@ -108,6 +108,17 @@ jobs: - name: Figure out the PR number run: echo ${{ github.event.client_payload.pull_request.number }} + + # This step creates a comment on the PR with a link to this workflow run. + - name: Add a comment on the PR with link to workflow run + uses: peter-evans/create-or-update-comment@v1 + with: + issue-number: ${{ github.event.client_payload.pull_request.number }} + body: | + Tests running at: . + Workflow: `${{ github.workflow }}`. + Commit: `${{ github.sha }}`. + PR: ${{ github.event.client_payload.pull_request.number }}. - name: Use Node.js 14.15.4 uses: actions/setup-node@v1