Skip to content

Commit 0b78dec

Browse files
rupertnashmr-c
authored andcommitted
CI: only create a local branch for PRs
1 parent be00beb commit 0b78dec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ jobs:
103103
pip install -U pip setuptools wheel
104104
pip install tox tox-gh-actions
105105
106-
- if: ${{ matrix.step == 'pydocstyle' }}
107-
name: Create local branch main == origin/main for diff-quality
108-
run: git branch main origin/main
106+
- if: ${{ matrix.step == 'pydocstyle' && github.event_name == 'pull_request'}}
107+
name: Create local branch for diff-quality for PRs
108+
run: git branch ${{github.base_ref}} origin/${{github.base_ref}}
109109

110110
- name: Test with tox
111111
run: tox

0 commit comments

Comments
 (0)