Skip to content

Commit 9e39705

Browse files
committed
Broader XML validation
Remove path restriction. Check *.xml and *.buttonMap in all dirs
1 parent 47be812 commit 9e39705

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

‎.github/workflows/validate_xml.yml‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# A workflow to validate that submitted buttonMap files are valid XML
2-
3-
name: Validate buttonMaps as XML
1+
# Treats buttonMap files as XML and validates both
2+
name: Validate buttonMaps and XML
43

54
# Controls when the workflow will run
65
on:
@@ -23,10 +22,10 @@ jobs:
2322
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2423
- uses: actions/checkout@v4
2524

26-
# Validates that all files in files/INTO\ Bindings/DeviceButtonMaps/*.buttonMap are valid XML
27-
- name: Validate buttonMaps as XML
25+
# Validates that .xml and .buttonMap files are valid XML. The file suffix is case-insentive.
26+
# Default path is "/"
27+
- name: Validate buttonMaps and XML
2828
uses: action-pack/valid-xml@v1
2929
with:
30-
path: "files/INTO\ Bindings/DeviceButtonMaps/"
31-
file-endings: ".buttonMap"
30+
file-endings: ".xml, .buttonMap"
3231

0 commit comments

Comments
 (0)