|
45 | 45 | run: |
|
46 | 46 | git config --global user.email "[email protected]"
|
47 | 47 | git config --global user.name "Dummy User"
|
| 48 | + - name: Unset header |
| 49 | + # checkout@v2 adds a header that makes branch protection report errors |
| 50 | + # because the Github action bot is not a collaborator on the repo |
| 51 | + run: git config --local --unset http.https://github.com/.extraheader |
| 52 | + - name: Fetch tags |
| 53 | + run: git fetch --prune --unshallow |
48 | 54 | - name: install dependencies
|
49 | 55 | run: |
|
50 | 56 | sudo apt-get update
|
@@ -253,6 +259,12 @@ jobs:
|
253 | 259 | with:
|
254 | 260 | submodules: recursive
|
255 | 261 | fetch-depth: 0
|
| 262 | + - name: Unset header |
| 263 | + # checkout@v2 adds a header that makes branch protection report errors |
| 264 | + # because the Github action bot is not a collaborator on the repo |
| 265 | + run: git config --local --unset http.https://github.com/.extraheader |
| 266 | + - name: Fetch tags |
| 267 | + run: git fetch --prune --unshallow |
256 | 268 | - name: Set up Python
|
257 | 269 | uses: actions/setup-python@v4
|
258 | 270 | with:
|
@@ -285,6 +297,12 @@ jobs:
|
285 | 297 | with:
|
286 | 298 | submodules: recursive
|
287 | 299 | fetch-depth: 0
|
| 300 | + - name: Unset header |
| 301 | + # checkout@v2 adds a header that makes branch protection report errors |
| 302 | + # because the Github action bot is not a collaborator on the repo |
| 303 | + run: git config --local --unset http.https://github.com/.extraheader |
| 304 | + - name: Fetch tags |
| 305 | + run: git fetch --prune --unshallow |
288 | 306 | - name: Set up Python
|
289 | 307 | uses: actions/setup-python@v4
|
290 | 308 | with:
|
@@ -320,6 +338,12 @@ jobs:
|
320 | 338 | run: |
|
321 | 339 | git config --local user.email "[email protected]"
|
322 | 340 | git config --local user.name "GitHub Action"
|
| 341 | + - name: Unset header |
| 342 | + # checkout@v2 adds a header that makes branch protection report errors |
| 343 | + # because the Github action bot is not a collaborator on the repo |
| 344 | + run: git config --local --unset http.https://github.com/.extraheader |
| 345 | + - name: Fetch tags |
| 346 | + run: git fetch --prune --unshallow |
323 | 347 | - name: Download version file
|
324 | 348 | uses: actions/download-artifact@v3
|
325 | 349 | with:
|
|
0 commit comments