File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -78,17 +78,15 @@ jobs:
78
78
- name : Checkout user repository
79
79
uses : actions/checkout@v4
80
80
with :
81
+ persist-credentials : false
81
82
token : ${{ steps.create_token.outputs.token }}
82
83
ref : ${{ github.event.pull_request.head.sha || github.sha }}
83
- sparse-checkout-cone-mode : false
84
- sparse-checkout : |
85
- /*
86
- !.github
87
84
88
85
# To avoid giving unknown scripts elevated permissions, download them from the master branch
89
86
- name : Get CI scripts from master (Linux and macOS)
90
87
if : inputs.os != 'windows-latest'
91
88
run : |
89
+ rm -rf .github
92
90
mkdir -p .github
93
91
cd .github
94
92
curl https://codeload.github.com/${{ github.repository }}/tar.gz/master | tar -xz --strip=2 arduino-esp32-master/.github
98
96
shell : pwsh
99
97
run : |
100
98
$ErrorActionPreference = "Stop"
99
+ Remove-Item -Path .github -Recurse -Force -ErrorAction SilentlyContinue
101
100
New-Item -ItemType Directory -Path ".github"
102
101
cd .github
103
102
Invoke-RestMethod -Uri https://codeload.github.com/${{ github.repository }}/tar.gz/master -OutFile master.tar.gz
You can’t perform that action at this time.
0 commit comments