Skip to content

Commit

Permalink
Merge pull request #38 from carpentries-incubator/znk-fix-workflows-2…
Browse files Browse the repository at this point in the history
…022-10-20

urgent: fix workflows
  • Loading branch information
jhlegarreta authored Oct 21, 2022
2 parents 3d9d687 + 31999b7 commit 74e1cd6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +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:
use-public-rspm: true
install-r: false
r-version: 'release'

- name: Install needed packages
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +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:
use-public-rspm: true
install-r: false
r-version: 'release'

- name: Cache R packages
Expand Down

0 comments on commit 74e1cd6

Please sign in to comment.