Skip to content

Commit 00b6570

Browse files
authored
Merge pull request #5084 from github/copilot/fix-rubocop-checkout-branch
Fix lint workflow to checkout PR branch instead of base branch
2 parents f25024f + 31742ae commit 00b6570

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v6.0.1
17+
with:
18+
ref: ${{ github.event.pull_request.head.ref || github.ref }}
1719

1820
- name: Setup Ruby
1921
uses: ruby/setup-ruby@v1.284.0

0 commit comments

Comments
 (0)