Skip to content

Commit

Permalink
Omit output if empty?
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Aug 21, 2023
1 parent cb9f930 commit 1630572
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check-suggests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:

name: ${{ matrix.package }}

if: ${{ matrix.package != '' }}
if: ${{ needs.matrix.outputs.matrix != '' }}

# Begin custom: services
# End custom: services
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/dep-matrix-suggests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,7 @@ runs:
']}'
)
writeLines(json)
writeLines(paste0("matrix=", json), Sys.getenv("GITHUB_OUTPUT"))
if (length(packages) > 0) {
writeLines(paste0("matrix=", json), Sys.getenv("GITHUB_OUTPUT"))
}
shell: Rscript {0}

0 comments on commit 1630572

Please sign in to comment.