Skip to content

Commit

Permalink
ci: checkout the actual ref instead of github's merge commit
Browse files Browse the repository at this point in the history
  • Loading branch information
onerandomusername committed Nov 19, 2021
1 parent bb9d3f8 commit 1ebbed3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/lint_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ env:
POETRY_CACHE_DIR: ${{ github.workspace }}/.cache/py-user-base
PYTHONUSERBASE: ${{ github.workspace }}/.cache/py-user-base
PRE_COMMIT_HOME: ${{ github.workspace }}/.cache/pre-commit-cache
GIT_REF: ${{ github.head_ref }}

jobs:
lint:
Expand All @@ -46,6 +47,10 @@ jobs:
# Checks out the repository in the current folder.
- name: Checks out repository
uses: actions/checkout@v2
with:
fetch-depth: 2
ref: ${{ env.GIT_REF }}


# Set up the right version of Python
- name: Set up Python ${{ env.PYTHON_VERSION }}
Expand Down Expand Up @@ -127,6 +132,9 @@ jobs:
# Checks out the repository in the current folder.
- name: Checks out repository
uses: actions/checkout@v2
with:
fetch-depth: 2
ref: ${{ env.GIT_REF }}

# Set up the right version of Python
- name: Set up Python ${{ env.PYTHON_VERSION }}
Expand Down

0 comments on commit 1ebbed3

Please sign in to comment.