Skip to content

Commit 6a0e2df

Browse files
authored
Merge pull request mautic#14963 from matbcvo/fix-transifex-workflow-5.2
Fix Transifex workflow
2 parents 25ba78c + ed0dbeb commit 6a0e2df

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
@@ -13,20 +13,22 @@ permissions:
1313

1414
jobs:
1515
push-to-transifex:
16-
if: github.repository == 'mautic/mautic'
16+
# Run only in the 'mautic/mautic' repository and on the default branch (or manually triggered via UI)
17+
if: github.repository == 'mautic/mautic' && (github.ref_name == github.event.repository.default_branch || github.event_name == 'workflow_dispatch')
1718
name: Push translations to Transifex
1819
runs-on: ubuntu-latest
1920

2021
steps:
21-
- uses: actions/checkout@v4
22+
- name: Checkout
23+
uses: actions/checkout@v4
2224

23-
- name: Setup PHP, with composer and extensions
25+
- name: Setup PHP with extensions
2426
uses: shivammathur/setup-php@v2
2527
with:
2628
php-version: 8.3
2729
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, mysql, pdo_mysql
2830

29-
- name: Install dependencies
31+
- name: Install Composer dependencies
3032
uses: "ramsey/composer-install@v3"
3133

3234
- name: Push translations to Transifex

0 commit comments

Comments
 (0)