Skip to content

Commit 59433d7

Browse files
authored
Merge pull request #1064 from equalizedigital/william/no-issue/make-pot-workflow-should-run-against-translation-prs-only
Update make-pot workflow to trigger only on specific pull request types
2 parents 035434f + b0f8c7c commit 59433d7

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/make-pot.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,22 @@ on:
88
required: false
99
default: 'develop'
1010
pull_request:
11-
branches:
12-
- develop
11+
types:
12+
- opened
13+
- synchronize
14+
- reopened
1315

1416
jobs:
1517
make-pot:
18+
if: |
19+
github.event_name == 'workflow_dispatch' ||
20+
(
21+
github.event_name == 'pull_request' &&
22+
(
23+
startsWith(github.event.pull_request.title, 'automatic_translations_') ||
24+
startsWith(github.event.pull_request.title, 'tm_edits_')
25+
)
26+
)
1627
runs-on: ubuntu-latest
1728
services:
1829
mysql:

0 commit comments

Comments
 (0)