Browse Source

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>
lilik-openwrt-22.03
Paul Spooren 4 years ago
parent
commit
13c1f2bcda
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      .github/workflows/formal.yml

+ 1
- 3
.github/workflows/formal.yml 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


Loading…
Cancel
Save