Skip to content

Commit 17c5869

Browse files
update workflow
1 parent 607ec87 commit 17c5869

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/format.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ jobs:
2525
- name: Install and run pre-commit
2626
run: |
2727
python -m pip install pre-commit
28-
git fetch origin
29-
pre-commit run --show-diff-on-failure --color=always --from-ref origin/${{ github.event.pull_request.base.ref }} --to-ref ${{ github.event.pull_request.head.sha }}
28+
git fetch origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
29+
pre-commit run --show-diff-on-failure --color=always --from-ref origin/"$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" --to-ref "$CI_COMMIT_SHA"
3030
id: precommit

0 commit comments

Comments
 (0)