Skip to content

Commit 90a31b3

Browse files
authored
CI: only create a local branch for PRs
1 parent cb7b302 commit 90a31b3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ jobs:
9292
pip install -U pip setuptools wheel
9393
pip install tox tox-gh-actions
9494
95-
- if: ${{ matrix.step == 'pydocstyle' }}
96-
name: Create local branch main == origin/main for diff-quality
97-
run: git branch main origin/main
95+
- if: ${{ matrix.step == 'pydocstyle' && github.event_name == 'pull_request'}}
96+
name: Create local branch for diff-quality for PRs
97+
run: git branch ${{github.base_ref}} origin/${{github.base_ref}}
9898

9999
- name: Test with tox
100100
run: tox

0 commit comments

Comments
 (0)