From 4711b6e614022613bec547aacdcfeec856716e0c Mon Sep 17 00:00:00 2001 From: cicdguy <26552821+cicdguy@users.noreply.github.com> Date: Mon, 16 Oct 2023 08:57:27 -0500 Subject: [PATCH] Do not rebuild R package for PRs (#190) This takes a long time for some packages. No need to rebuild for PRs. --- .github/workflows/build-check-install.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index dc882e33..8477cf80 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -711,8 +711,9 @@ jobs: - name: Rebuild R package 🏗 if: > - inputs.disable-unit-test-reports != 'true' || - startsWith(github.ref, 'refs/tags/v') + (inputs.disable-unit-test-reports != 'true' || + startsWith(github.ref, 'refs/tags/v')) && + github.event_name != 'pull_request' run: | # Undo changes to DESCRIPTION and tests/testthat.R git checkout DESCRIPTION