From 052caecee0dcb16a27b4efb93d0fdb83975edaaf Mon Sep 17 00:00:00 2001 From: Avimitin Date: Fri, 13 Dec 2024 12:56:09 +0800 Subject: [PATCH] [ci] tweak CI run condition - Run lint CI on all cases - Rerun PD workflow when unlabeled - Run PD workflow on draft PR - Don't run report on draft PR for VCS workflow Signed-off-by: Avimitin --- .github/workflows/lint.yml | 1 - .github/workflows/pd.yml | 2 +- .github/workflows/t1rocket.yml | 3 ++- .github/workflows/vcs.yml | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e25e9b3a6..096d8e3de 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,7 +15,6 @@ concurrency: jobs: check-format: - if: '! github.event.pull_request.draft' name: "Check code format" runs-on: [self-hosted, linux, nixos] steps: diff --git a/.github/workflows/pd.yml b/.github/workflows/pd.yml index 6fc534939..be6c9b139 100644 --- a/.github/workflows/pd.yml +++ b/.github/workflows/pd.yml @@ -7,6 +7,7 @@ on: - reopened - ready_for_review - labeled + - unlabeled env: USER: runner @@ -17,7 +18,6 @@ concurrency: jobs: generate-test-plan: - if: '! github.event.pull_request.draft' name: "Generate CI target for RTL elaborate" runs-on: [self-hosted, linux, nixos] outputs: diff --git a/.github/workflows/t1rocket.yml b/.github/workflows/t1rocket.yml index b61857a01..4dd0ec367 100644 --- a/.github/workflows/t1rocket.yml +++ b/.github/workflows/t1rocket.yml @@ -89,7 +89,8 @@ jobs: # Don't run report when: # - user cancel ( we don't need report at this case ) # - PR from outside repository ( we don't have permission to push commit into fork repository ) - if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }} + # - this is a draft pr + if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository && ! github.event.pull_request.draft }} needs: [run-testcases] runs-on: [self-hosted, linux, nixos] permissions: diff --git a/.github/workflows/vcs.yml b/.github/workflows/vcs.yml index 58749a8df..97d5ef371 100644 --- a/.github/workflows/vcs.yml +++ b/.github/workflows/vcs.yml @@ -89,7 +89,8 @@ jobs: # Don't run report when: # - user cancel ( we don't need report at this case ) # - PR from outside repository ( we don't have permission to push commit into fork repository ) - if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }} + # - this is a draft PR + if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository && ! github.event.pull_request.draft }} needs: [run-testcases] runs-on: [self-hosted, linux, nixos] permissions: