CI: checkout HEAD commit rather than merge commit
GitHub CI actions/checkout uses a merge commit which isn't compatible
with our formality checks. Instead checkout the pull request HEAD.
Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 13c1f2bcda
)
This commit is contained in:
parent
29ad225700
commit
f50a80b79c
1 changed files with 1 additions and 3 deletions
4
.github/workflows/formal.yml
vendored
4
.github/workflows/formal.yml
vendored
|
@ -13,6 +13,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Determine branch name
|
||||
|
@ -23,9 +24,6 @@ jobs:
|
|||
|
||||
- name: Test formalities
|
||||
run: |
|
||||
# remove GitHubs merge commit
|
||||
git rebase "origin/$BRANCH"
|
||||
|
||||
source .github/workflows/ci_helpers.sh
|
||||
|
||||
RET=0
|
||||
|
|
Loading…
Reference in a new issue