From 6a79437c5ba6a7c757036464c0a6f96ad0e1c202 Mon Sep 17 00:00:00 2001 From: onerandomusername Date: Fri, 19 Nov 2021 08:50:19 -0500 Subject: [PATCH] ci: checkout the actual ref instead of github's merge commit --- .github/workflows/lint_test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/lint_test.yml b/.github/workflows/lint_test.yml index a5655ec5..664502ef 100644 --- a/.github/workflows/lint_test.yml +++ b/.github/workflows/lint_test.yml @@ -46,6 +46,10 @@ jobs: # Checks out the repository in the current folder. - name: Checks out repository uses: actions/checkout@v2 + with: + fetch-depth: 2 + ref: ${{ github.head_ref }} + # Set up the right version of Python - name: Set up Python ${{ env.PYTHON_VERSION }}