Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b344124

Browse files
committed
chore: Do not commit on pull requests
1 parent 420c14b commit b344124

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/update.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ jobs:
5858
run: |
5959
powrap --modified
6060
- name: Commit and push changes
61-
if: github.repository == 'python/python-docs-pt-br'
61+
if: |
62+
github.repository == 'python/python-docs-pt-br' &&
63+
! github.event_name == 'pull_request'
6264
run: |
6365
git config user.name github-actions
6466
git config user.email [email protected]
@@ -116,7 +118,9 @@ jobs:
116118
run: |
117119
powrap --modified -C ${{ matrix.branch }}
118120
- name: Commit and push changes
119-
if: github.repository == 'python/python-docs-pt-br'
121+
if: |
122+
github.repository == 'python/python-docs-pt-br' &&
123+
! github.event_name == 'pull_request'
120124
run: |
121125
cd ${{ matrix.branch }}
122126
git config user.name github-actions

0 commit comments

Comments
 (0)