Skip to content

Commit

Permalink
Avoid building .qmd files for the components in the viash_tools rep…
Browse files Browse the repository at this point in the history
…ository (#13)

* Checkout viash_tools repository in RUNNER_TEMP.

* Fix checkout url

* Fix path to executable

* Add CHANGELOG entry
  • Loading branch information
DriesSchaumont authored May 11, 2023
1 parent 51b1d7b commit 3dcf426
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# viash-actions v3.2.0
# viash-actions v3.1.1

## Bug fixes

`pro/generate-documentation-qmd`: Avoid building .qmd files for the components in the `viash_tools` repository by cloning it into `RUNNER_TEMP`.

# viash-actions v3.1.0

Expand Down
17 changes: 10 additions & 7 deletions pro/generate-documentation-qmd/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,11 @@ runs:
fi
echo "Using version $RELEASE_TAG"
echo "releasetag=$RELEASE_TAG" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3
with:
repository: viash-io/viash_tools
token: ${{ inputs.viash_pro_token }}
path: ${{ inputs.working_directory }}/viash_tools
ref: ${{ steps.latestrelease.outputs.releasetag }}
# The checkout action does not allow checking out a repo outside $GITHUB_WORKSPACE
- name: 'Checkout viash_tools'
shell: bash
run: |
git clone https://${{ inputs.viash_pro_token }}@github.com/viash-io/viash_tools.git "$RUNNER_TEMP/viash_tools" -b ${{ steps.latestrelease.outputs.releasetag }}
- name: 'Generate quarto markdown files.'
shell: bash
id: generate-schemas
Expand All @@ -93,10 +92,14 @@ runs:
extra_args+=(--dest_path "${{ inputs.dest_path }}")
fi
viash_tools/target/docker/quarto/generate_documentation_qmd/generate_documentation_qmd \
$RUNNER_TEMP/viash_tools/target/docker/quarto/generate_documentation_qmd/generate_documentation_qmd \
--input "${{ inputs.input_dir }}" "${extra_args[@]}" \
--output "${{ inputs.output_dir }}" \
--git_repo "${{ inputs.repository }}" \
--git_browse_url "https://github.com/${{ inputs.repository }}/blob/${{ inputs.ref }}/" \
--git_tag "${{ inputs.ref }}" \
--write_index "${{ inputs.write_index }}"
- name: 'Cleanup checkout'
shell: bash
run: |
rm -rf "$RUNNER_TEMP/viash_tools"

0 comments on commit 3dcf426

Please sign in to comment.