Skip to content

Commit

Permalink
Add missing workflow inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jan 12, 2024
1 parent d23bcd6 commit 696b501
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/validate-and-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ on:
type: boolean
description: Whether to skip the GH pages build part of the process
default: false
deploy-viewer:
deploy_viewer:
type: boolean
description: Whether to use the new building blocks viewer
default: true
viewer-path:
viewer_path:
type: string
description: Path where to deploy the viewer
default: '.'
Expand Down Expand Up @@ -106,8 +106,8 @@ jobs:
config_file: ${{ inputs.config_file }}
test_outputs_path: ${{ inputs.test_outputs_path }}
github_base_url: ${{ inputs.github_base_url }}
deploy_viewer: "${{ inputs.deploy-viewer }}"
viewer_path: ${{ inputs.viewer-path }}
deploy_viewer: ${{ inputs.deploy_viewer && 'true' || 'false' }}
viewer_path: ${{ inputs.viewer_path }}
- name: Compress large _visited_properties.tsv and git pull
run: |
sudo find "${{ inputs.annotated_path }}" -size +10M -name _visited_properties.tsv \
Expand All @@ -123,7 +123,7 @@ jobs:
sudo find "${{ inputs.annotated_path }}" -name _visited_properties.tsv -delete
sudo find "${{ inputs.annotated_path }}" -name _visited_properties.tsv.gz -delete
- name: Create GH Pages index
if: ${{ !inputs.deploy-viewer && github.event.repository.has_pages && !inputs.skip-pages }}
if: ${{ !inputs.deploy_viewer && github.event.repository.has_pages && !inputs.skip-pages }}
shell: python
run: |
import json
Expand All @@ -150,7 +150,7 @@ jobs:
f.write(f'<li class="validation-{validation}"><tt>{identifier}</tt> - {name}</li>')
f.write('</ul><p style="margin-top:1em"><a href="${{ inputs.test_outputs_path }}/report.html">Validation report</a></p></body></html>')
- name: Deploy Building Blocks viewer
if: ${{ inputs.deploy-viewer && github.event.repository.has_pages && !inputs.skip-pages }}
if: ${{ inputs.deploy_viewer && github.event.repository.has_pages && !inputs.skip-pages }}
run: |
if [ -n "${{ inputs.viewer_path }}" ]; then
mkdir -p "${{ inputs.viewer_path }}"
Expand Down
10 changes: 8 additions & 2 deletions full/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ inputs:
github_base_url:
description: Base URL for linking to GitHub content
default: https://github.com/${{github.repository}}/blob/${{github.ref_name}}/
deploy_viewer:
description: Whether to use the new building blocks viewer
default: 'true'
viewer_path:
description: Path where to deploy the viewer
default: '.'

runs:
using: composite
Expand All @@ -52,8 +58,8 @@ runs:
config_file: ${{ inputs.config_file }}
test_outputs_path: ${{ inputs.test_outputs_path }}
github_base_url: ${{ inputs.github_base_url }}
deploy_viewer: "${{ inputs.deploy-viewer }}"
viewer_path: ${{ inputs.viewer-path }}
deploy_viewer: ${{ inputs.deploy_viewer }}
viewer_path: ${{ inputs.viewer_path }}
- name: Generate Slate documentation
continue-on-error: true
run: |
Expand Down

0 comments on commit 696b501

Please sign in to comment.