From dca3f56b716e3dc8bdbcfd2fc3c5f579cebca55e Mon Sep 17 00:00:00 2001 From: Andy Yen <38731840+onlyjackfrost@users.noreply.github.com> Date: Fri, 12 Apr 2024 14:48:43 +0800 Subject: [PATCH] prevent ai service from running ui workflow (#110) --- .github/workflows/ui-lint.yaml | 4 ++-- .github/workflows/ui-test.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ui-lint.yaml b/.github/workflows/ui-lint.yaml index 940f399c9..914cf6c78 100644 --- a/.github/workflows/ui-lint.yaml +++ b/.github/workflows/ui-lint.yaml @@ -5,7 +5,7 @@ name: Wren-UI Lint on: pull_request: - types: [ labeled ] + types: [ labeled, synchronize ] permissions: contents: read @@ -22,7 +22,7 @@ defaults: jobs: eslint: # run this job only if the PR is labeled with "ci/ui" - if: ${{ github.event.label.name == 'ci/ui' || github.event_name == 'push'}} + if: ${{ github.event.label.name == 'ci/ui' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/ui-test.yaml b/.github/workflows/ui-test.yaml index 4a8cd202f..074e00654 100644 --- a/.github/workflows/ui-test.yaml +++ b/.github/workflows/ui-test.yaml @@ -4,7 +4,7 @@ name: Wren-UI Test on: pull_request: - types: [ labeled ] + types: [ labeled, synchronize ] permissions: contents: read @@ -21,7 +21,7 @@ defaults: jobs: unit-test: # run this job only if the PR is labeled with "ci/ui" - if: ${{ github.event.label.name == 'ci/ui' || github.event_name == 'push'}} + if: ${{ github.event.label.name == 'ci/ui'}} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4