workflows: update pr-auditor workflow (#829)

This commit is contained in:
Robert Lin authored and GitHub committed 2022-07-06 14:25:13 -07:00
1 parent 6921374ab2
commit 95ad6764d4
1 file changed
+7 -6
+7 -6
View File
@@ -1,19 +1,20 @@
# See https://docs.sourcegraph.com/dev/background-information/ci#pr-auditor
name: pr-auditor
on:
pull_request:
types: [closed, edited, opened]
pull_request_target:
types: [ closed, edited, opened, synchronize, ready_for_review ]
jobs:
run:
check-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with: { repository: "sourcegraph/sourcegraph" }
with: { repository: 'sourcegraph/sourcegraph' }
- uses: actions/setup-go@v2
with: { go-version: "1.18" }
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/sourcegraph/infrastructure/actions/runs/${{ github.run_id }}
GITHUB_RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}