Add GitHub Action to Check plist Files for 'real' Key #901
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a GitHub Action workflow to automatically scan all
.plist
files in the repository for the presence of thereal
key. Thereal
key, when found, creates issues when compiling the project, thus the need of fixing it tointeger
type.The workflow utilizes
libxml2-utils
to parse.plist
files andgrep
to search for occurrences of thereal
key. If the key is found in any of the plist files, the workflow will raise an error, prompting contributors to consider replacingreal
withinteger
for the above reasons.You can test the functionality by "accidentally" replacing a
integer
key withreal
: the action will return error code1
and print both the file name as well as the line number with the line content, for better debugging purposes.Please review and merge this pull request to integrate the new GitHub Action into the project workflow.
CC @vandroiy2013