From 4108a9649fc897acf55989122fd08fe24f882a41 Mon Sep 17 00:00:00 2001 From: overtrue Date: Tue, 8 Jul 2025 23:24:50 +0800 Subject: [PATCH] refactor: optimize performance workflow trigger conditions - Replace paths-ignore with paths for more precise control - Only trigger on Rust source files, Cargo files, and workflow itself - Improve efficiency by avoiding unnecessary performance tests - Follow best practices for targeted workflow execution --- .github/workflows/performance.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 98a9461d..c584e4aa 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -17,19 +17,11 @@ name: Performance Testing on: push: branches: [main] - paths-ignore: - - "**.md" - - "**.txt" - - "docs/**" - - "deploy/**" - - "scripts/dev_*.sh" - - "LICENSE*" - - "README*" - - "**/*.png" - - "**/*.jpg" - - "**/*.svg" - - ".gitignore" - - ".dockerignore" + paths: + - '**/*.rs' + - '**/Cargo.toml' + - '**/Cargo.lock' + - '.github/workflows/performance.yml' workflow_dispatch: inputs: profile_duration: