Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Action to Check plist Files for 'real' Key #901

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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
dreamwhite marked this conversation as resolved.
Show resolved Hide resolved

- name: Find 'real' Key in plist files
run: |
if result=$(find . -type f -name "*.plist" -exec grep -nH "<real>[0-9]*<\/real>" {} \; 2>/dev/null); then
dreamwhite marked this conversation as resolved.
Show resolved Hide resolved
if [ -n "$result" ]; then
echo "::error::Found 'real' key in the following files:"
while read -r line; do
echo "$line" | awk -F: '{print $1}'; # print the file path
echo "$line" | awk -F: '{print ":"$2":"$3}'; # print the line number and the line
done <<< "$result"
exit 1
else
echo "No 'real' key found."
exit 0
fi
else
echo "Error occurred while searching for 'real' key."
exit 1
fi
4 changes: 2 additions & 2 deletions Resources/PinConfigs.kext/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<key>Codec</key>
<string>agasecond - Realtek ALC256 (3246) for Xiaomi Pro Enhanced 2019</string>
<key>CodecID</key>
<integer>283902550</integer>
<int>283902550</int>
dreamwhite marked this conversation as resolved.
Show resolved Hide resolved
<key>ConfigData</key>
<data>ASccIAEnHQEBJx6mAScfkAE3HPABNx0AATceAAE3H0ABRxzwAUcdAAFHHgABRx9AAYcc8AGHHQABhx4AAYcfQAGXHEABlx0QAZceqwGXHwQBpxzwAacdAAGnHgABpx9AAbccEAG3HQEBtx4XAbcfkAG3DAIB1xzwAdcdAAHXHgAB1x9AAecc8AHnHQAB5x4AAecfQAIXHDACFx0QAhceKwIXHwQCFwwCAgUAEAIEACACBQBGAgQwpA==</data>
<key>FuncGroup</key>
Expand Down Expand Up @@ -5670,7 +5670,7 @@
<key>Codec</key>
<string>Piscean - Realtek ALC298 for Dell Precision 5540</string>
<key>CodecID</key>
<real>283902616</real>
<integer>283902616</integer>
<key>ConfigData</key>
<data>ASccMAEnHQEBJx6gAScfkAF3HBABdx0BAXceFwF3H5ABhxxwAYcdIAGHHosBhx8CAhccIAIXHRACFx4rAhcfAwF3DAIBhwclAhcIgw==</data>
<key>FuncGroup</key>
Expand Down
Loading