]> BookStack Code Mirror - bookstack/commitdiff
Updated github actions to ignore language branch
authorDan Brown <redacted>
Sun, 13 Feb 2022 13:03:41 +0000 (13:03 +0000)
committerDan Brown <redacted>
Sun, 13 Feb 2022 13:03:41 +0000 (13:03 +0000)
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.

.github/workflows/phpstan.yml
.github/workflows/phpunit.yml
.github/workflows/test-migrations.yml

index d9d84430f628c1b7924cfff33a60b2f8c802e485..cbda75afd0b2d730f366605b183d33b631b4d85e 100644 (file)
@@ -1,15 +1,10 @@
 name: phpstan
 
-on:
-  push:
-    branches-ignore:
-      - l10n_development
-  pull_request:
-    branches-ignore:
-      - l10n_development
+on: [push, pull_request]
 
 jobs:
   build:
+    if: ${{ github.ref != 'refs/heads/l10n_development' }}
     runs-on: ubuntu-20.04
     strategy:
       matrix:
index 5f4ca4ec502cdc41b6406ef4f36c5df780adb16b..53812cb4214de1d8fa34cd8cf5c6b0e0f048d247 100644 (file)
@@ -1,15 +1,10 @@
 name: phpunit
 
-on:
-  push:
-    branches-ignore:
-      - l10n_development
-  pull_request:
-    branches-ignore:
-      - l10n_development
+on: [push, pull_request]
 
 jobs:
   build:
+    if: ${{ github.ref != 'refs/heads/l10n_development' }}
     runs-on: ubuntu-20.04
     strategy:
       matrix:
index 864b2837e29bc97aff2909950e007aec2b8cbb89..7fb05dca677bd48e521ed9e117115afe8e2b4a79 100644 (file)
@@ -1,15 +1,10 @@
 name: test-migrations
 
-on:
-  push:
-    branches-ignore:
-      - l10n_development
-  pull_request:
-    branches-ignore:
-      - l10n_development
+on: [push, pull_request]
 
 jobs:
   build:
+    if: ${{ github.ref != 'refs/heads/l10n_development' }}
     runs-on: ubuntu-20.04
     strategy:
       matrix:
Morty Proxy This is a proxified and sanitized view of the page, visit original site.