Skip to content

Commit

Permalink
FEAT: add --query to pro/generate_documentation_qmd (#35)
Browse files Browse the repository at this point in the history
* FEAT: add --query to pro/generate_documentaion_qmd

* Add PR number to CHANGELOG
  • Loading branch information
DriesSchaumont authored Jul 4, 2024
1 parent a15ad33 commit 3c8134c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# viash-actions v6.2.0

## New functionality

`pro/generate_documentation_qmd`: add `--query` parameter (PR #35).

# viash-actions v6.1.0

## New functionality
Expand Down
8 changes: 8 additions & 0 deletions pro/generate-documentation-qmd/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ inputs:
required: false
description: |
An override for the `--src` parameter in `viash ns list`. Example: `src/`.
query:
required: false
description: |
Filter which components get selected by component and namespace name. Can be a regex.
runs:
using: 'composite'
steps:
Expand Down Expand Up @@ -96,6 +100,10 @@ runs:
extra_args+=(--dest_path "${{ inputs.dest_path }}")
fi
if [ ! -z "${{ inputs.query }}" ]; then
extra_args+=(--query "${{ inputs.query }}")
fi
$RUNNER_TEMP/viash_tools/target/docker/quarto/generate_documentation_qmd/generate_documentation_qmd \
--input "./" "${extra_args[@]}" \
--src "${{ inputs.src }}" \
Expand Down

0 comments on commit 3c8134c

Please sign in to comment.