From 45f61ef2435cc89da07006d26ea6d5688fe7b156 Mon Sep 17 00:00:00 2001 From: Enol Fernandez Date: Thu, 25 Apr 2024 10:33:27 +0100 Subject: [PATCH] Use the right checkout --- .github/workflows/lint.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0d94bc4..c3e9d8b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,6 +12,11 @@ jobs: # Checks out a copy of your repository on the ubuntu-latest machine - name: Checkout code uses: actions/checkout@v4 + with: + # Make sure the actual branch is checked out when running on PR + ref: ${{ github.event.pull_request.head.sha }} + # Full git history needed to get proper list of changed files + fetch-depth: 0 # Runs the Super-Linter action - name: Run Super-Linter