Skip to content

Commit 0b15f88

Browse files
committed
Test
1 parent c5f9b03 commit 0b15f88

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/build_py_tools.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,15 @@ jobs:
7878
- name: Checkout user repository
7979
uses: actions/checkout@v4
8080
with:
81+
persist-credentials: false
8182
token: ${{ steps.create_token.outputs.token }}
8283
ref: ${{ github.event.pull_request.head.sha || github.sha }}
83-
sparse-checkout-cone-mode: false
84-
sparse-checkout: |
85-
/*
86-
!.github
8784

8885
# To avoid giving unknown scripts elevated permissions, download them from the master branch
8986
- name: Get CI scripts from master (Linux and macOS)
9087
if: inputs.os != 'windows-latest'
9188
run: |
89+
rm -rf .github
9290
mkdir -p .github
9391
cd .github
9492
curl https://codeload.github.com/${{ github.repository }}/tar.gz/master | tar -xz --strip=2 arduino-esp32-master/.github
@@ -98,6 +96,7 @@ jobs:
9896
shell: pwsh
9997
run: |
10098
$ErrorActionPreference = "Stop"
99+
Remove-Item -Path .github -Recurse -Force -ErrorAction SilentlyContinue
101100
New-Item -ItemType Directory -Path ".github"
102101
cd .github
103102
Invoke-RestMethod -Uri https://codeload.github.com/${{ github.repository }}/tar.gz/master -OutFile master.tar.gz

0 commit comments

Comments
 (0)