File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -98,12 +98,12 @@ jobs:
98
98
if : inputs.os == 'windows-latest'
99
99
shell : pwsh
100
100
run : |
101
- mkdir -p .github
101
+ $ErrorActionPreference = "Stop"
102
+ New-Item -ItemType Directory -Path ".github"
102
103
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
107
107
108
108
- name : Set up Python 3.8
109
109
# Skip setting python on ARM because of missing compatibility: https://github.com/actions/setup-python/issues/108
You can’t perform that action at this time.
0 commit comments