Skip to content

Commit

Permalink
Use a random URL to download the Cygwin installer
Browse files Browse the repository at this point in the history
This will hopefully get rid of the error reported at
https://cygwin.com/pipermail/cygwin/2024-October/256606.html
  • Loading branch information
mlocati committed Oct 22, 2024
1 parent 3bb2cf5 commit df3e2bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ runs:
echo "unknown platform $platform"
exit 1
}
Invoke-WebRequest https://cygwin.com/setup-$platform.exe -OutFile C:\setup.exe
# Workaround for https://cygwin.com/pipermail/cygwin/2024-October/256606.html
$noCacheSuffix = @(
[Guid]::NewGuid(),
(Get-Date).ToUniversalTime().Subtract([datetime]::UnixEpoch).TotalMilliseconds.ToString("F3", [cultureinfo]::InvariantCulture)
) -join '@'
Invoke-WebRequest "https://cygwin.com/setup-$platform.exe?$noCacheSuffix" -OutFile C:\setup.exe
$packages = '${{ inputs.packages }}'
$pkg_list = $packages.Split('', [System.StringSplitOptions]::RemoveEmptyEntries)
Expand Down

0 comments on commit df3e2bb

Please sign in to comment.