From 1068d2874a5cdcee25806a40ec2ada1f89dcc526 Mon Sep 17 00:00:00 2001 From: Guoshuai Zhao Date: Wed, 18 Sep 2024 14:42:56 +0800 Subject: [PATCH] add event to control the workflow. --- .github/workflows/build-image.yaml | 2 +- .github/workflows/unit-tests.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 26c64dc..5231516 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -5,6 +5,7 @@ on: branches: - main pull_request: + types: [assigned, labeled] branches: - main release: @@ -13,7 +14,6 @@ on: jobs: docker: - if: github.event.review.state == 'approved' name: Docker build ${{ matrix.name }} runs-on: [self-hosted, linux, x64, gpu] timeout-minutes: 600 diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 3b31c15..799b837 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -2,6 +2,7 @@ name: Unit Tests on: pull_request: + types: [assigned, labeled] branches: - main - release/*