From d4024e28763be6309e04ebf59ea22781f601e205 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Sat, 2 May 2020 15:13:50 +0900 Subject: [PATCH] Add test suite help comment --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c6c80c..a991474 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,6 +69,30 @@ jobs: comment: '[CI] test ${{ matrix.target }}' delete-branch: true + testSuiteHelp: + if: github.event_name == 'pull_request' + needs: [test] + runs-on: ubuntu-latest + steps: + - name: Find Comment + uses: peter-evans/find-comment@v1 + id: fc + with: + issue-number: ${{ github.event.number }} + comment-author: github-actions + body-includes: Full test suite slash command + + - if: steps.fc.outputs.comment-id == '' + name: Create comment + uses: peter-evans/create-or-update-comment@v1 + with: + issue-number: ${{ github.event.number }} + body: | + Full test suite slash command (repository admin only) + ``` + /test repository=${{ github.event.pull_request.head.repo.full_name }} branch=${{ github.event.pull_request.head.ref }} + ``` + package: if: github.event_name == 'push' && github.ref == 'refs/heads/master' needs: [test]