Skip to content

Commit bf96bb6

Browse files
committed
Fix ruff action
1 parent d3859de commit bf96bb6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/python-package.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Python package
55

66
on:
77
push:
8-
branches: ['main']
8+
branches: ['**']
99
pull_request:
1010
branches: ['main']
1111

@@ -15,6 +15,9 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
18+
with:
19+
# On PRs, lint the head commit directly to avoid stale merge-ref confusion.
20+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
1821
- name: Set up Python 3.13
1922
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
2023
with:

0 commit comments

Comments
 (0)