-
Notifications
You must be signed in to change notification settings - Fork 2
🩹 [Patch]: Switch to use GITHUB_TOKEN for updates
#43
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
Conversation
…ction in Update-FontsData script
…in Update-FontsData script
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the font data update workflow by removing dependencies on the GitHub App authentication and introducing a new native command wrapper. The changes simplify the script execution by using standard git operations instead of app-based authentication.
- Introduces
Invoke-NativeCommandfunction to standardize native command execution with error handling - Updates workflow permissions and removes GitHub App authentication requirements
- Removes the "Agave" font entry from the fonts data
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/FontsData.json | Removes the "Agave" font entry from the available fonts list |
| scripts/Update-FontsData.ps1 | Adds Invoke-NativeCommand function and refactors git commands to use it instead of direct calls |
| .github/workflows/Update-FontsData.yml | Updates permissions and removes GitHub App authentication parameters |
…nhance git operations in script
…ay changes, commit details, and diffs
GITHUB_TOKEN for updates
Description
This pull request introduces significant updates to the workflow and script for automating the process of updating font data. The changes improve functionality, add clarity, and enhance error handling. Key updates include adjustments to permissions, modifications to the GitHub Actions workflow, and a major overhaul of the
Update-FontsData.ps1script to streamline Git operations and improve logging.Workflow updates:
.github/workflows/Update-FontsData.yml: Updated permissions to includecontents: writeandpull-requests: write, enabling the workflow to push changes and create pull requests..github/workflows/Update-FontsData.yml: Addedfetch-depth: 0to the repository checkout step, ensuring all history is fetched for operations requiring full commit history. Removed unusedClientIDandPrivateKeyinputs from theUpdate-FontsDatajob.Script enhancements:
scripts/Update-FontsData.ps1: Replaced raw Git commands with a newInvoke-NativeCommandfunction for executing native commands, improving error handling and debugging capabilities.scripts/Update-FontsData.ps1: Enhanced branch management logic to dynamically switch between default and feature branches based on context, ensuring proper handling of updates and pull requests.scripts/Update-FontsData.ps1: Improved logging and added detailed output for changes, commits, and diffs, providing better visibility into the update process.Type of change
Checklist