From a513a2487f3aae7442eefd7d0db09314870beba6 Mon Sep 17 00:00:00 2001 From: Pascal Zumkehr Date: Tue, 29 Oct 2024 10:11:43 +0100 Subject: [PATCH] Update github action --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b0f2977..b15e648 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,6 +2,8 @@ name: Build on: push: + branches: + - main # create pull request to run actions on other branches pull_request: jobs: @@ -38,14 +40,15 @@ jobs: coverage: name: Coverage runs-on: ubuntu-latest + if: ${{ !github.event.pull_request.head.repo.fork }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v9.0.0 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: 3.2 bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - uses: paambaati/codeclimate-action@v5.0.0 + - uses: paambaati/codeclimate-action@v9.0.0 env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} with: