Skip to content

Commit 6a9b01e

Browse files
committed
chore: try creating better report
1 parent 864875d commit 6a9b01e

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

action.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,16 @@ runs:
88
using: 'composite'
99
steps:
1010
- name: Check file
11+
id: linting
1112
shell: bash
12-
run: xsltproc --xinclude XSLTLint.xslt $INPUT_XSLT_FILE
13+
run: xsltproc --xinclude XSLTLint.xslt $INPUT_XSLT_FILE | echo "report=$@" >> $GITHUB_OUTPUT
1314
env:
1415
INPUT_XSLT_FILE: ${{ inputs.xslt-file }}
16+
- name: Report linting status
17+
run: |
18+
if [[ "${{ steps.linting.outputs.report }}" == "" ]]; then
19+
exit 0
20+
else
21+
echo "$GITHUB_OUTPUT"
22+
exit 0
23+
fi

0 commit comments

Comments
 (0)