Skip to content

Commit 143e190

Browse files
feat: Auto-installing fontforge in workflow ( Fixes #1 )
Adding groups and outputting fonts
1 parent 5bb3e7c commit 143e190

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Font.psm1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,15 @@ $script:this = $myModule
3232
$fontForge = $ExecutionContext.SessionState.InvokeCommand.GetCommand('fontforge','application')
3333
if (-not $fontForge) {
3434
if ($env:GITHUB_EVENT_PATH) {
35+
"::group::Install Font Forge" | Out-Host
3536
sudo apt-get install fontforge -y | Out-Host
36-
$fontForge = $ExecutionContext.SessionState.InvokeCommand.GetCommand('fontforge','application')
37+
if ($?) {
38+
"FontForge Installed!" | Out-Host
39+
}
40+
"Fonts Found" | Out-Host
41+
Get-Font | Out-Host
42+
"::endgroup::" | Out-Host
43+
$fontForge = $ExecutionContext.SessionState.InvokeCommand.GetCommand('fontforge','application')
3744
} else {
3845
Write-Warning "FontForge is not installed and in the path. Import/Export-Font will not work"
3946
}

0 commit comments

Comments
 (0)