Skip to content

🩹 [Patch]: Update "Update-FontData" workflow to use GITHUB_TOKEN #41

Description

Describe the change

Can update it to use GitHub-Script and the GttHub PowerShell functions.

Error log:

✓ Connected github.com/nerdfonts-updater/Organization/PSModule!
Already on 'main'
Your branch is up to date with 'origin/main'.
From https://github.com/PSModule/NerdFonts
 * [new branch]      copilot/fix-35 -> origin/copilot/fix-35
 * [new tag]         v1.0.26        -> v1.0.26
 * [new tag]         v1.0.0         -> v1.0.0
 * [new tag]         v1.0.1         -> v1.0.1
 * [new tag]         v1.0.10        -> v1.0.10
 * [new tag]         v1.0.11        -> v1.0.11
 * [new tag]         v1.0.12        -> v1.0.12
 * [new tag]         v1.0.13        -> v1.0.13
 * [new tag]         v1.0.14        -> v1.0.14
 * [new tag]         v1.0.15        -> v1.0.15
 * [new tag]         v1.0.16        -> v1.0.16
 * [new tag]         v1.0.17        -> v1.0.17
 * [new tag]         v1.0.18        -> v1.0.18
 * [new tag]         v1.0.19        -> v1.0.19
 * [new tag]         v1.0.2         -> v1.0.2
 * [new tag]         v1.0.20        -> v1.0.20
 * [new tag]         v1.0.21        -> v1.0.21
 * [new tag]         v1.0.22        -> v1.0.22
 * [new tag]         v1.0.23        -> v1.0.23
 * [new tag]         v1.0.24        -> v1.0.24
 * [new tag]         v1.0.25        -> v1.0.25
 * [new tag]         v1.0.3         -> v1.0.3
 * [new tag]         v1.0.4         -> v1.0.4
 * [new tag]         v1.0.5         -> v1.0.5
 * [new tag]         v1.0.6         -> v1.0.6
 * [new tag]         v1.0.7         -> v1.0.7
 * [new tag]         v1.0.8         -> v1.0.8
 * [new tag]         v1.0.9         -> v1.0.9
Already up to date.
Switched to a new branch 'auto-font-update-20250715-000911'
Invoke-RestMethod : 
{
  "message": "API rate limit exceeded for 172.208.127.242. (But here\u0027s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
  "documentation_url": "https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"
}
At /home/runner/work/NerdFonts/NerdFonts/scripts/Update-FontsData.ps1:14 char:12
+ $release = Invoke-RestMethod 'https://api.github.com/repos/ryanoasis/ …
+            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (Method: GET, Reques…cept-Encoding: br
}:HttpRequestMessage) [Invoke-RestMethod], HttpResponseException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Error: Process completed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions