diff --git a/.github/workflows/data-to-dwc.yml b/.github/workflows/data-to-dwc.yml index c9282bb..1c70967 100644 --- a/.github/workflows/data-to-dwc.yml +++ b/.github/workflows/data-to-dwc.yml @@ -2,9 +2,9 @@ name: Convert CSV files to Darwin Core compliant event and occurrence files on: push: - branches: [main, master] + branches: [main] pull_request: - branches: [main, master] + branches: [main] jobs: generate-data: @@ -12,30 +12,28 @@ jobs: steps: - uses: actions/checkout@v3 - uses: r-lib/actions/setup-r@v2 - with: - r-version: 'renv' - uses: r-lib/actions/setup-renv@v2 - - uses: actions/cache@v3 # Cache packages so won't be compiled everytime job is run - with: - path: ~/.local/share/renv - key: ${{ runner.os }}-renv-${{ hashFiles('**/renv.lock') }} - restore-keys: | - ${{ runner.os }}-renv- - - - name: Cache packages - uses: actions/cache@v3 - with: - path: ~/.local/share/renv - key: ${{ runner.os }}-renv-${{ hashFiles('**/renv.lock') }} - restore-keys: | - ${{ runner.os }}-renv- - - - name: Restore packages - shell: Rscript {0} - run: | - if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv") - renv::restore() + # - uses: actions/cache@v3 # Cache packages so won't be compiled everytime job is run + # with: + # path: ~/.local/share/renv + # key: ${{ runner.os }}-renv-${{ hashFiles('**/renv.lock') }} + # restore-keys: | + # ${{ runner.os }}-renv- + # + # - name: Cache packages + # uses: actions/cache@v3 + # with: + # path: ~/.local/share/renv + # key: ${{ runner.os }}-renv-${{ hashFiles('**/renv.lock') }} + # restore-keys: | + # ${{ runner.os }}-renv- + # + # - name: Restore packages + # shell: Rscript {0} + # run: | + # if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv") + # renv::restore() - name: Generate data # Run the script run: source("R/data_to_dwc.R")