Skip to content

Commit 43f9f60

Browse files
committed
Changed from a conditional job to a conditional variable expression
1 parent 04a475e commit 43f9f60

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/rhub.yaml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,14 @@ jobs:
6060
with:
6161
token: ${{ secrets.RHUB_TOKEN }}
6262
job-config: ${{ matrix.config.job-config }}
63-
- name: Check Args for NoSuggests
64-
if: ${{ matrix.config.label }} == 'nosuggests'
65-
env:
66-
CHECK_ARGS: '--ignore-vignettes'
67-
BUILD_ARGS: '--no-build-vignettes'
68-
uses: r-hub/actions/run-check@v1
69-
with:
70-
token: ${{ secrets.RHUB_TOKEN }}
71-
job-config: ${{ matrix.config.job-config }}
7263
- uses: r-hub/actions/run-check@v1
7364
with:
7465
token: ${{ secrets.RHUB_TOKEN }}
7566
job-config: ${{ matrix.config.job-config }}
67+
env:
68+
CHECK_ARGS: ${{ matrix.config.label == 'nosuggests' && '--ignore-vignettes' || '' }}
69+
BUILD_ARGS: ${{ matric.config.label == 'nosuggests' && '--no-build-vignettes' || '' }}
70+
7671

7772
other-platforms:
7873
needs: setup

0 commit comments

Comments
 (0)