Skip to content

Commit 1f1e510

Browse files
authored
fix missing method
1 parent 0659415 commit 1f1e510

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,10 @@ jobs:
152152
CF_ZONE_ID: ${{ secrets.CF_ZONE_ID }}
153153
CF_PURGECACHE_TOKEN: ${{ secrets.CF_PURGECACHE_TOKEN }}
154154
run: |
155-
Invoke-WebRequest @{
155+
$params = @{
156+
Method = 'POST'
156157
Uri = "https://api.cloudflare.com/client/v4/zones/$env:CF_ZONE_ID/purge_cache"
157158
Headers = @{Authorization="Bearer $env:CF_PURGECACHE_TOKEN"}
158159
Body = '{"hosts":["update.launcherkit.sporecommunity.com"]}'
159-
}
160+
}
161+
Invoke-WebRequest @params

0 commit comments

Comments
 (0)