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>
This commit is contained in:
Paul Spooren 2021-03-04 23:16:00 -10:00
parent fa631e9284
commit 13c1f2bcda
1 changed files with 1 additions and 3 deletions

View File

@ -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