-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: zhujian <[email protected]>
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: PR Verifier | ||
|
||
on: | ||
# NB: using `pull_request_target` runs this in the context of | ||
# the base repository, so it has permission to upload to the checks API. | ||
# This means changes won't kick in to this file until merged onto the | ||
# main branch. | ||
pull_request_target: | ||
types: [opened, edited, reopened, synchronize] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
verify: | ||
name: verify PR contents | ||
permissions: | ||
checks: write | ||
pull-requests: read | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Verifier action | ||
id: verifier | ||
uses: kubernetes-sigs/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |