From bf6d1d9f75a722d82e8615f3c9561b1a36b9e7a6 Mon Sep 17 00:00:00 2001 From: vinhhh Date: Wed, 30 Aug 2023 15:15:25 +0700 Subject: [PATCH] change(bearer_workflows): only scan pr diff --- .github/workflows/bearer.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/bearer.yml b/.github/workflows/bearer.yml index 90543f367..add68afed 100644 --- a/.github/workflows/bearer.yml +++ b/.github/workflows/bearer.yml @@ -1,10 +1,8 @@ name: Bearer PR Check on: - push: - branches: - - master - + pull_request: + types: [opened, synchronize, reopened] permissions: contents: read @@ -12,6 +10,7 @@ permissions: jobs: rule_check: runs-on: ubuntu-22.04 + continue-on-error: true steps: - uses: actions/checkout@v3 - name: Run Report @@ -20,12 +19,13 @@ jobs: with: format: rdjson output: rd.json + diff: true config-file: 'bearer.yml' - uses: reviewdog/action-setup@v1 with: reviewdog_version: latest - name: Run reviewdog env: - REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - cat rd.json | reviewdog -f=rdjson -reporter=github-check -filter-mode=nofilter \ No newline at end of file + REVIEWDOG_TOKEN: ${{ secrets.REVIEWDOG_TOKEN }} + run: + cat rd.json | reviewdog -f=rdjson -reporter=github-pr-check \ No newline at end of file