mirror of
https://github.com/php/doc-en.git
synced 2026-03-23 23:32:18 +01:00
Fix check-whitespace.yml
This sets up the identity first, because otherwise the merge appears to fail unpredictably.
This commit is contained in:
4
.github/workflows/check-whitespace.yml
vendored
4
.github/workflows/check-whitespace.yml
vendored
@@ -20,10 +20,10 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- run: git checkout ${{github.event.pull_request.base.sha}}
|
||||
- run: git merge --squash ${{github.event.pull_request.head.sha}}
|
||||
- run: |
|
||||
git config --global user.name "check-whitespace"
|
||||
git config --global user.email "check-whitespace@example.com"
|
||||
- run: git checkout ${{github.event.pull_request.base.sha}}
|
||||
- run: git merge --squash ${{github.event.pull_request.head.sha}}
|
||||
- run: git commit -m "Squashed"
|
||||
- run: git log --check HEAD^..HEAD
|
||||
|
||||
Reference in New Issue
Block a user