From f8e617258234fa2b74801cfcb99c3ed7076b5d73 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sun, 13 Feb 2022 13:03:41 +0000 Subject: [PATCH] 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. --- .github/workflows/phpstan.yml | 9 ++------- .github/workflows/phpunit.yml | 9 ++------- .github/workflows/test-migrations.yml | 9 ++------- 3 files changed, 6 insertions(+), 21 deletions(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index d9d84430f..cbda75afd 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -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: diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 5f4ca4ec5..53812cb42 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -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: diff --git a/.github/workflows/test-migrations.yml b/.github/workflows/test-migrations.yml index 864b2837e..7fb05dca6 100644 --- a/.github/workflows/test-migrations.yml +++ b/.github/workflows/test-migrations.yml @@ -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: