Skip to content

Commit

Permalink
Use two different conditional Quarto steps
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheiss committed Jun 1, 2024
1 parent ec09361 commit 0f40fe2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
R_NOT_CRAN: true
R_GH: true
GITHUB_PAT: ${{ secrets.GITHUB_PAT }}
QUARTO_VERSION: ${{ matrix.config.quarto == '' && '' || matrix.config.quarto }}


strategy:
fail-fast: false
Expand All @@ -33,10 +31,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Quarto
- name: Set up Quarto (pre-release)
if: matrix.config.quarto != ''
uses: quarto-dev/quarto-actions/setup@v2
with:
version: ${{ env.QUARTO_VERSION }}
version: ${{ matrix.config.quarto }}

- name: Set up Quarto (latest version)
if: matrix.config.quarto == ''
uses: quarto-dev/quarto-actions/setup@v2

- name: Set up R
uses: r-lib/actions/setup-r@v2
Expand Down

0 comments on commit 0f40fe2

Please sign in to comment.