diff --git a/.github/workflows/template.yml b/.github/workflows/template.yml index 13f03bc..8453c6c 100644 --- a/.github/workflows/template.yml +++ b/.github/workflows/template.yml @@ -72,12 +72,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: + use-public-rspm: true + install-r: false r-version: 'release' - name: Install needed packages