Skip to content

Commit f8e6172

Browse files
committed
Updated github actions to ignore language branch
Old branch filters did not seem to work since they are supposed to reference the target branch, not source branch. Instead used if statement to prevent run on crowdin branch.
1 parent 7a8505f commit f8e6172

3 files changed

Lines changed: 6 additions & 21 deletions

File tree

.github/workflows/phpstan.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
name: phpstan
22

3-
on:
4-
push:
5-
branches-ignore:
6-
- l10n_development
7-
pull_request:
8-
branches-ignore:
9-
- l10n_development
3+
on: [push, pull_request]
104

115
jobs:
126
build:
7+
if: ${{ github.ref != 'refs/heads/l10n_development' }}
138
runs-on: ubuntu-20.04
149
strategy:
1510
matrix:

.github/workflows/phpunit.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
name: phpunit
22

3-
on:
4-
push:
5-
branches-ignore:
6-
- l10n_development
7-
pull_request:
8-
branches-ignore:
9-
- l10n_development
3+
on: [push, pull_request]
104

115
jobs:
126
build:
7+
if: ${{ github.ref != 'refs/heads/l10n_development' }}
138
runs-on: ubuntu-20.04
149
strategy:
1510
matrix:

.github/workflows/test-migrations.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
name: test-migrations
22

3-
on:
4-
push:
5-
branches-ignore:
6-
- l10n_development
7-
pull_request:
8-
branches-ignore:
9-
- l10n_development
3+
on: [push, pull_request]
104

115
jobs:
126
build:
7+
if: ${{ github.ref != 'refs/heads/l10n_development' }}
138
runs-on: ubuntu-20.04
149
strategy:
1510
matrix:

0 commit comments

Comments
 (0)