Skip to content

Commit

Permalink
just fetch head commit of base branch
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Jun 25, 2024
1 parent bda83fc commit 177ad06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/rubocop-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 177ad06

Please sign in to comment.