Skip to content

Commit

Permalink
🩹 [Patch]: Remove deprecated scripts and update NerdFonts data retrie…
Browse files Browse the repository at this point in the history
…val method
  • Loading branch information
MariusStorhaug committed Jan 15, 2025
1 parent b19edf8 commit 631af22
Show file tree
Hide file tree
Showing 8 changed files with 174 additions and 202 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/Update-FontsData.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Update-FontsData

on:
push:
branches-ignore:
- main

permissions:
contents: write

jobs:
Update-FontsData:
name: Update-FontsData
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Update-FontsData
uses: PSModule/GitHub-Script@v1
with:
Script: . 'scripts/Update-FontsData.ps1'
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@ foreach ($fontArchive in $fontArchives) {
}
}

New-Item -Path 'data\NerdFonts.json' -ItemType File -Force
$fonts | ConvertTo-Json | Set-Content -Path 'data\NerdFonts.json' -Force
$parentFolder = Split-Path -Path $PSScriptRoot -Parent
$filePath = Join-Path -Path $parentFolder -ChildPath 'src\FontsData.json'
$null = New-Item -Path $filePath -ItemType File -Force
$fonts | ConvertTo-Json | Set-Content -Path $filePath -Force

git add .
git commit -m 'Update-FontsData'
git push
Loading

0 comments on commit 631af22

Please sign in to comment.