diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d50c9aa7..259bb80b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,25 +24,21 @@ jobs: CI: true danger: runs-on: ubuntu-latest + if: github.event_name == 'pull_request' steps: - uses: actions/checkout@v1 - if: github.event_name == 'pull_request' - uses: actions/setup-node@v1 - if: github.event_name == 'pull_request' with: node-version: 12.x - uses: actions/setup-ruby@v1 - if: github.event_name == 'pull_request' with: ruby-version: '2.6' - name: npm install - if: github.event_name == 'pull_request' run: | npm install env: CI: true - uses: MeilCli/danger-action@master - if: github.event_name == 'pull_request' with: plugins_file: 'Gemfile' danger_file: 'Dangerfile'