Skip to content

Commit 63cab80

Browse files
committed
test
1 parent 19be709 commit 63cab80

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build_py_tools.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ jobs:
9898
if: inputs.os == 'windows-latest'
9999
shell: pwsh
100100
run: |
101-
mkdir -p .github
101+
$ErrorActionPreference = "Stop"
102+
New-Item -ItemType Directory -Path ".github"
102103
cd .github
103-
Invoke-WebRequest -Uri "https://codeload.github.com/${{ github.repository }}/zip/master" -OutFile "master.zip"
104-
Expand-Archive -Path "master.zip" -DestinationPath . -Force
105-
Move-Item -Path arduino-esp32-master/.github -Destination . -Force
106-
Remove-Item -Path master.zip -Force
104+
Invoke-RestMethod -Uri https://codeload.github.com/${{ github.repository }}/tar.gz/master -OutFile master.tar.gz
105+
tar -xzvf master.tar.gz --strip-components=2 arduino-esp32-master/.github
106+
Remove-Item -Path master.tar.gz
107107
108108
- name: Set up Python 3.8
109109
# Skip setting python on ARM because of missing compatibility: https://github.com/actions/setup-python/issues/108

0 commit comments

Comments
 (0)