Skip to content

Commit eb299d4

Browse files
committed
make rubocop only lint the current branch (not a merge with master)
1 parent 585e1fb commit eb299d4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/rubocop.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Rubocop
33

4-
on: [ push ]
4+
on: [ pull_request, push ]
55

66
jobs:
77
build:
@@ -11,6 +11,7 @@ jobs:
1111
TESTOPTS: "-v"
1212
steps:
1313
- uses: actions/checkout@v2
14+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
1415
with:
1516
submodules: recursive
1617
- name: Set up Ruby 3.0

0 commit comments

Comments
 (0)