File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -137,14 +137,16 @@ jobs:
137
137
- uses : actions/checkout@v2
138
138
- uses : git-for-windows/setup-git-for-windows-sdk@main
139
139
- name : download vcpkg artifacts
140
- shell : powershell
140
+ shell : bash
141
141
run : |
142
- $urlbase = "https://dev.azure.com/git/git/_apis/build/builds"
143
- $id = ((Invoke-WebRequest -UseBasicParsing "${urlbase}?definitions=9&statusFilter=completed&resultFilter=succeeded&`$top=1").content | ConvertFrom-JSON).value[0].id
144
- $downloadUrl = ((Invoke-WebRequest -UseBasicParsing "${urlbase}/$id/artifacts").content | ConvertFrom-JSON).value[0].resource.downloadUrl
145
- (New-Object Net.WebClient).DownloadFile($downloadUrl, "compat.zip")
146
- Expand-Archive compat.zip -DestinationPath . -Force
147
- Remove-Item compat.zip
142
+ urlbase=https://dev.azure.com/git/git/_apis/build/builds
143
+ id=$(curl "$urlbase?definitions=9&statusFilter=completed&resultFilter=succeeded&\$top=1" |
144
+ jq -r '.value[0].id')
145
+ download_url=$(curl "$urlbase/$id/artifacts" |
146
+ jq -r '.value[] | select(.name == "compat").resource.downloadUrl')
147
+ curl -o compat.zip "$download_url"
148
+ unzip compat.zip
149
+ rm compat.zip
148
150
- name : add msbuild to PATH
149
151
uses : microsoft/setup-msbuild@v1
150
152
- name : copy dlls to root
You can’t perform that action at this time.
0 commit comments