File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -158,9 +158,9 @@ jobs:
158
158
if ($LASTEXITCODE -ne 0) { throw "Failed to generate new appcast" }
159
159
160
160
# Upload the new appcast and signature to GCS.
161
- & gsutil cp $newAppCastPath $env:APPCAST_GCS_URI
161
+ & gsutil -h "Cache-Control:no-cache,max-age=0" cp $newAppCastPath $env:APPCAST_GCS_URI
162
162
if ($LASTEXITCODE -ne 0) { throw "Failed to upload new appcast" }
163
- & gsutil cp $newAppCastSignaturePath $env:APPCAST_SIGNATURE_GCS_URI
163
+ & gsutil -h "Cache-Control:no-cache,max-age=0" cp $newAppCastSignaturePath $env:APPCAST_SIGNATURE_GCS_URI
164
164
if ($LASTEXITCODE -ne 0) { throw "Failed to upload new appcast signature" }
165
165
env :
166
166
APPCAST_GCS_URI : gs://releases.coder.com/coder-desktop/windows/appcast.xml
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ param (
27
27
[string ] $channel ,
28
28
29
29
[Parameter (Mandatory = $false )]
30
- [string ] $pubDate = (Get-Date ).ToUniversalTime().ToString(" ddd, dd MMM yyyy HH:mm:ss +0000" ),
30
+ [ValidatePattern (" ^\w{3}, \d{2} \w{3} \d{4} \d{2}:\d{2}:\d{2} \+00:00$" )]
31
+ [string ] $pubDate = (Get-Date ).ToUniversalTime().ToString(" ddd, dd MMM yyyy HH:mm:ss +00:00" ),
31
32
32
33
[Parameter (Mandatory = $true )]
33
34
[ValidateScript ({ Test-Path $_ })]
You can’t perform that action at this time.
0 commit comments