Skip to content

Commit

Permalink
Fixed unzip on windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaiboldeanu committed Dec 5, 2023
1 parent 110edb8 commit 45fe034
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/windows-utils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ jobs:
- name: Download Test Data from Google Drive
run: |
$downloadLink = "https://drive.google.com/uc?export=download&id=1ofiSQ4zDwXfHE65tow4_jDIceBYHNW_8"
$downloadPage = curl -L $downloadLink -o download.html
$confirmCode = (Select-String -Path download.html -Pattern 'confirm=([0-9A-Za-z_]+)' -AllMatches).Matches.Groups[1].Value
$downloadPage = Invoke-WebRequest -Uri $downloadLink -OutFile "download.html"
$confirmCode = (Select-String -Path "download.html" -Pattern 'confirm=([0-9A-Za-z_]+)' -AllMatches).Matches.Groups[1].Value
$downloadFileLink = "https://drive.google.com/uc?export=download&confirm=$confirmCode&id=1ofiSQ4zDwXfHE65tow4_jDIceBYHNW_8"
curl -L $downloadFileLink -o test_data.zip
Invoke-WebRequest -Uri $downloadFileLink -OutFile "test_data.zip"
- name: Unzip Test Data
run: Expand-Archive -LiteralPath "test_data.zip" -DestinationPath ${{ env.TEST_DATA_FOLDER }} -Force
Expand Down

0 comments on commit 45fe034

Please sign in to comment.