Skip to content

Commit

Permalink
Update fontlab-ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
twardoch committed Nov 1, 2023
1 parent 9f4ba1e commit 3dd9bad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/fontlab-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,22 @@ jobs:
uses: actions/checkout@v2

- name: Get FontLab Version
id: get_version
run: |
id: get_version
run: |
$url = "https://download.fontlab.com/fontlab-8/upd-win64.php"
$response = Invoke-WebRequest -Uri $url -UserAgent "Mozilla/5.0" -ErrorAction SilentlyContinue
Write-Host "Debug: Response Object: $response"
if ($response -eq $null) {
throw "Failed to receive a valid response from the server."
}
Write-Host "Debug: Response URI: $($response.BaseResponse.ResponseUri)"
if ($response.BaseResponse.ResponseUri -eq $null) {
throw "No ResponseUri in the HTTP response."
}
$version = $response.BaseResponse.ResponseUri.Segments[-1].Replace('FontLab-8-Win64-Install-', '').Replace('.exe', '')
echo "::set-output name=version::$version"
- name: Cache FontLab Installer
id: cache-installer
uses: actions/cache@v2
Expand Down

0 comments on commit 3dd9bad

Please sign in to comment.