Skip to content

Commit 25ba78c

Browse files
authored
Fix Transifex workflow (mautic#14947)
1 parent 4712139 commit 25ba78c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/transifex.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
name: Push translations to Transifex
22

33
on:
4-
pull_request:
5-
types: [closed]
4+
push:
5+
branches:
6+
- '[0-9].*'
67
paths:
78
- '**/Translations/en_US/*.ini'
9+
workflow_dispatch:
810

911
permissions:
1012
contents: read
1113

1214
jobs:
1315
push-to-transifex:
16+
if: github.repository == 'mautic/mautic'
1417
name: Push translations to Transifex
1518
runs-on: ubuntu-latest
16-
if: github.event.pull_request.merged == true
1719

1820
steps:
1921
- uses: actions/checkout@v4
@@ -29,7 +31,7 @@ jobs:
2931

3032
- name: Push translations to Transifex
3133
env:
32-
MAUTIC_CONFIG_PARAMETERS: '{"transifex_api_token": "${{ secrets.TRANSIFEX_API_TOKEN }}" }'
34+
MAUTIC_CONFIG_PARAMETERS: '{"transifex_api_token": "${{ secrets.TRANSIFEX_API_TOKEN }}"}'
3335
run: |
3436
echo "MAUTIC_CONFIG_PARAMETERS=${MAUTIC_CONFIG_PARAMETERS}" >> $GITHUB_ENV
3537
php bin/console mautic:transifex:push

0 commit comments

Comments
 (0)