Provide number of warnings as Action output parameter
Changelog
Added
- GitHub Action output parameter
num_warnings
containing the number of warnings parsed from TeXtidotestderr
output-
Value: integer
1
,2
,10
,42
, ... on successful parse, or-1
if unable to parse TeXtidote output (additionally an error is logged) -
Example use:
jobs: self-check: runs-on: ubuntu-latest steps: - name: Lint fine.tex id: textidote uses: ChiefGokhlayeh/textidote-action@v3 with: root_file: main.tex - name: Assert num_warnings == 0 if: ${{ steps.textidote.outputs.num_warnings != 0 }} run: 'echo "num_warnings: ${{ steps.textidote.outputs.num_warnings }}"; exit 1;'
-
Improved
- Self-checks now assert that
num_warnings
is properly set
Removed
hunspell
package from Docker image (not needed for TeXtidote operation?)