From a20a8b18bd3ad463c5a58949eb515bb15bd8f812 Mon Sep 17 00:00:00 2001 From: wonderlandpark Date: Tue, 13 Apr 2021 14:27:30 +0900 Subject: [PATCH] ci: updated trigger --- .github/workflows/testing.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index cc0ff6b..fbfa5c8 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -1,10 +1,5 @@ name: CI -on: - push: - pull_request: - branches: - - '*' - - '!master' +on: [push, pull_request] jobs: eslint: name: ESLint @@ -57,7 +52,7 @@ jobs: - name: Create needed files run: echo '{"tester":"DEMO_KEY"}' > secret.json - name: Build - if: github.ref == 'refs/heads/master' + if: success() && github.ref == 'refs/heads/master' run: yarn build env: NEXT_PUBLIC_SENTRY_SERVER_ROOT_DIR: ./api