gh-actions: static-tests: remove ref from checkout

That parameter was solely needed for the commit checks that are now
moved to the `check-pr` workflow. The only other test using git is the
whitespace check and that works just fine on the merge commit.
This commit is contained in:
Martine Lenders 2020-12-17 12:58:35 +01:00
parent 44b48e6c2d
commit e5f5f3c0b3
No known key found for this signature in database
GPG Key ID: CCD317364F63286F

View File

@ -18,10 +18,6 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
# Use the SHA of the PR branch as-is, not the PR branch merged
# in master (default behavior in GH actions)
# See https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Setup git
run: |