Skip to content

Commit 87c99f9

Browse files
fix github action yaml
1 parent 07fca62 commit 87c99f9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/benchmarking.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,14 @@ jobs:
4444
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
4545
shell: Rscript {0}
4646
- name: Cache R packages
47-
if: ${{ github.event_name == 'pull_request' }}
48-
if: runner.os != 'Windows'
47+
if: ${{ github.event_name == 'pull_request' }} && runner.os != 'Windows'
4948
uses: actions/cache@v1
5049
with:
5150
path: ${{ env.R_LIBS_USER }}
5251
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-3-${{ hashFiles('.github/depends.Rds') }}
5352
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-3-
5453
- name: Install system dependencies
55-
if: ${{ github.event_name == 'pull_request' }}
56-
if: runner.os == 'Linux'
54+
if: ${{ github.event_name == 'pull_request' }} && runner.os == 'Linux'
5755
env:
5856
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
5957
run: |

0 commit comments

Comments
 (0)