Skip to content
This repository was archived by the owner on Jul 20, 2022. It is now read-only.

Commit 39bbb2d

Browse files
authored
workflows: update pr-auditor workflow (#238)
1 parent 3730549 commit 39bbb2d

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

.github/workflows/pr-auditor.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1+
# See https://docs.sourcegraph.com/dev/background-information/ci#pr-auditor
12
name: pr-auditor
23
on:
3-
pull_request:
4+
pull_request_target:
45
types: [ closed, edited, opened, synchronize, ready_for_review ]
6+
57
jobs:
6-
pr-auditor:
7-
runs-on: ubuntu-latest
8-
name: pr-auditor
9-
steps:
10-
- uses: actions/checkout@v2
11-
with: { repository: 'sourcegraph/sourcegraph' }
12-
- uses: actions/setup-go@v2
13-
with: { go-version: '1.18' }
14-
- run: ./dev/pr-auditor/check-pr.sh
15-
env:
16-
GITHUB_EVENT_PATH: ${{ env.GITHUB_EVENT_PATH }}
17-
GITHUB_TOKEN: ${{ secrets.CODENOTIFY_GITHUB_TOKEN }}
18-
GITHUB_RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
8+
check-pr:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with: { repository: 'sourcegraph/sourcegraph' }
13+
- uses: actions/setup-go@v2
14+
with: { go-version: '1.18' }
15+
16+
- run: ./dev/pr-auditor/check-pr.sh
17+
env:
18+
GITHUB_EVENT_PATH: ${{ env.GITHUB_EVENT_PATH }}
19+
GITHUB_TOKEN: ${{ secrets.CODENOTIFY_GITHUB_TOKEN }}
20+
GITHUB_RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

0 commit comments

Comments
 (0)