-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added xmllint check to test for real plist fields in PinConfigs
closes #901
- Loading branch information
1 parent
9a281b9
commit a6145da
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Check plist files for 'real' key | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
check-plist: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install xmllint | ||
run: sudo apt-get install libxml2-utils | ||
|
||
- name: Find 'real' key in plist files | ||
run: | | ||
# Find all plist files and parse them using xmllint, searching for the 'real' key | ||
for file in $(find . -type f -name "*.plist"); do | ||
if xmllint --xpath "//real" "$file" 2>/dev/null; then | ||
echo "::error::Found 'real' key in $file." | ||
exit 1 | ||
fi | ||
done | ||
echo "No 'real' key found." |