Skip to content

Commit

Permalink
feat: add timestamps input #4
Browse files Browse the repository at this point in the history
  • Loading branch information
CAMOBAP committed Jul 28, 2024
1 parent c9c0a1e commit fb18ff1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ jobs:
- image: metanorma/metanorma:1.10.0
install-fonts: false
continue-without-fonts: true
- image: metanorma/metanorma:1.9.7
install-fonts: true
continue-without-fonts: false
timestamps: true
container:
image: ${{ matrix.image }}
steps:
Expand All @@ -81,6 +85,7 @@ jobs:
agree-to-terms: true
install-fonts: ${{ matrix.install-fonts }}
continue-without-fonts: ${{ matrix.continue-without-fonts }}
timestamps: ${{ matrix.timestamps }}

- uses: andstor/file-existence-action@v3
with:
Expand Down
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ inputs:
use-bundler:
description: 'Run in bundler'
default: '' # false
timestamps:
description: 'Do timestamps to logs'
default: '' # false
# stylesheet:
# description: 'Stylesheet file path for rendering HTML page'
# template-dir:
Expand Down Expand Up @@ -86,4 +89,4 @@ runs:
metanorma site generate . \
-o ${{ inputs.output-dir }} \
-c ${{ inputs.config-file }} \
${{ env.METANORMA_FLAGS }}
${{ env.METANORMA_FLAGS }} ${{ inputs.timestamps == 'true' && "| ts '[%m-%d-%Y %H:%M:%.S]'" || '' }}

0 comments on commit fb18ff1

Please sign in to comment.