diff --git a/.github/workflows/template.yml b/.github/workflows/template.yml index 9ff0d66..0665e0c 100644 --- a/.github/workflows/template.yml +++ b/.github/workflows/template.yml @@ -127,13 +127,14 @@ jobs: id: check-rmd working-directory: lesson run: | - echo "::set-output name=count::$(shopt -s nullglob; files=($(find . -iname '*.Rmd')); echo ${#files[@]})" + echo "count=$(shopt -s nullglob; files=($(find . -iname '*.Rmd')); echo ${#files[@]})" >> $GITHUB_OUTPUT - name: Set up R if: steps.check-rmd.outputs.count != 0 - uses: r-lib/actions/setup-r@master + uses: r-lib/actions/setup-r@v2 with: - r-version: 'release' + use-public-rspm: true + install-r: false - name: Install needed packages if: steps.check-rmd.outputs.count != 0 diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 9d47e30..be0b187 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -44,13 +44,14 @@ jobs: - name: Look for R-markdown files id: check-rmd run: | - echo "::set-output name=count::$(shopt -s nullglob; files=($(find . -iname '*.Rmd')); echo ${#files[@]})" + echo "count=$(shopt -s nullglob; files=($(find . -iname '*.Rmd')); echo ${#files[@]})" >> $GITHUB_OUTPUT - name: Set up R if: steps.check-rmd.outputs.count != 0 - uses: r-lib/actions/setup-r@master + uses: r-lib/actions/setup-r@v2 with: - r-version: 'release' + use-public-rspm: true + install-r: false - name: Restore R Cache if: steps.check-rmd.outputs.count != 0