Skip to content

Commit 0ea99b9

Browse files
committed
Allow workflow to run on pull_request but restrict push to non-pull_request events
1 parent d17e5f3 commit 0ea99b9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/sync.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
find . -name "*.po" -exec powrap {} \;
5252
5353
- name: Commit and push changes
54+
if: github.event_name != 'pull_request'
5455
run: |
5556
git config --local user.name "GitHub Action's update-translation job"
5657
git config --local user.email github-actions@github.com

0 commit comments

Comments
 (0)