From 7e4e8c437053cd6bfb35efa0811ac27a90e34045 Mon Sep 17 00:00:00 2001 From: Robert Lin Date: Fri, 17 Jun 2022 10:43:46 -0700 Subject: [PATCH] workflows: update pr-auditor workflow (#37367) --- .github/workflows/pr-auditor.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pr-auditor.yml b/.github/workflows/pr-auditor.yml index 811225d13b3..3b81cd14633 100644 --- a/.github/workflows/pr-auditor.yml +++ b/.github/workflows/pr-auditor.yml @@ -1,19 +1,20 @@ -# See dev/pr-auditor/README.md +# See https://docs.sourcegraph.com/dev/background-information/ci#pr-auditor name: pr-auditor on: pull_request: types: [ closed, edited, opened, synchronize, ready_for_review ] + jobs: - pr-auditor: - runs-on: ubuntu-latest - name: pr-auditor - steps: - - uses: actions/checkout@v2 - with: { repository: 'sourcegraph/sourcegraph' } - - uses: actions/setup-go@v2 - with: { go-version: '1.18' } - - run: ./dev/pr-auditor/check-pr.sh - env: - GITHUB_EVENT_PATH: ${{ env.GITHUB_EVENT_PATH }} - GITHUB_TOKEN: ${{ secrets.CODENOTIFY_GITHUB_TOKEN }} - GITHUB_RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + check-pr: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: { repository: 'sourcegraph/sourcegraph' } + - uses: actions/setup-go@v2 + with: { go-version: '1.18' } + + - run: ./dev/pr-auditor/check-pr.sh + env: + GITHUB_EVENT_PATH: ${{ env.GITHUB_EVENT_PATH }} + GITHUB_TOKEN: ${{ secrets.CODENOTIFY_GITHUB_TOKEN }} + GITHUB_RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}