🩹 [Patch]: Use GitHub App again and some log and file formatting #45
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 updates the workflow and script for automating the FontsData update process. Key changes include integration with GitHub App credentials, enhanced error handling, and formatting updates for better readability. The changes also streamline the process for detecting updates, committing changes, and creating pull requests.
Workflow updates:
.github/workflows/Update-FontsData.yml: Added GitHub App credentials (ClientIDandPrivateKey) for secure authentication during the update process. Removed permissions as these grant the GITHUB_TOKEN permissions, which is no longer used.Script enhancements:
scripts/Update-FontsData.ps1: Improved command execution to capture output and handle multiline results, returning formatted output when applicable.scripts/Update-FontsData.ps1: Updated JSON formatting forFontsData.jsonto include indentation for better readability.scripts/Update-FontsData.ps1: Enhanced logging and messaging, including clearer notices for no updates, summary of changes, and improved pull request titles and descriptions. [1] [2]Type of change
Checklist