Skip to content

Commit

Permalink
Fetch base and source branch
Browse files Browse the repository at this point in the history
  • Loading branch information
minkyu97 committed Nov 5, 2023
1 parent 7861f6e commit eb631e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ jobs:
path: "./waffledotcom/test.xml"
reporter: java-junit

# run pre-commit only different from base branch
# it contains pylint, black, isort, etc.
- name: Run pre-commit
run: |
git fetch origin ${{ github.base_ref }}
poetry run pre-commit run --from-ref origin/${{ github.base_ref }} --to-ref HEAD

0 comments on commit eb631e9

Please sign in to comment.