b0e321a937
- Add a GitHub Actions workflow for Bearer PR Check - Add Bearer action to Go workflow - Remove macOS from Go workflow operating systems - Remove redundant checkout step from Go workflow Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
36 lines
742 B
YAML
36 lines
742 B
YAML
name: Bearer PR Check
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
rule_check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- uses: reviewdog/action-setup@v1
|
|
with:
|
|
reviewdog_version: latest
|
|
|
|
- name: Run Report
|
|
id: report
|
|
uses: bearer/bearer-action@v2
|
|
with:
|
|
format: rdjson
|
|
output: rd.json
|
|
diff: true
|
|
|
|
- name: Run reviewdog
|
|
if: always()
|
|
env:
|
|
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
cat rd.json | reviewdog -f=rdjson -reporter=github-pr-review
|