From 177ad067ef1c94c0f5d17b462456dc6ed36948d3 Mon Sep 17 00:00:00 2001 From: Ivan Kuchin Date: Tue, 25 Jun 2024 11:54:17 +0200 Subject: [PATCH] just fetch head commit of base branch --- .github/workflows/rubocop-core.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rubocop-core.yml b/.github/workflows/rubocop-core.yml index e80d5bcf05e7..d1953e531b68 100644 --- a/.github/workflows/rubocop-core.yml +++ b/.github/workflows/rubocop-core.yml @@ -8,9 +8,9 @@ jobs: name: rubocop runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 2 # we are comparing PR merge head with base + - uses: actions/checkout@v4 + - name: Fetch head commit of base branch + run: git fetch --depth 1 origin ${{ github.event.pull_request.base.sha }} - uses: ruby/setup-ruby@v1 - uses: opf/action-rubocop@master with: