From e7a4415d1f9c43879c67a9702955135c04f2cd1a Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Tue, 21 Oct 2025 18:10:37 +0800 Subject: [PATCH] ci: improve clippy lint workflow to handle manual triggers and src-tauri changes --- .github/workflows/lint-clippy.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint-clippy.yml b/.github/workflows/lint-clippy.yml index ce783b02..38ca85c0 100644 --- a/.github/workflows/lint-clippy.yml +++ b/.github/workflows/lint-clippy.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Check src-tauri changes + if: github.event_name != 'workflow_dispatch' id: check_changes uses: dorny/paths-filter@v3 with: @@ -30,13 +31,18 @@ jobs: - 'src-tauri/**' - name: Skip if src-tauri not changed - if: steps.check_changes.outputs.rust != 'true' + if: github.event_name != 'workflow_dispatch' && steps.check_changes.outputs.rust != 'true' run: echo "No src-tauri changes, skipping clippy lint." - name: Continue if src-tauri changed - if: steps.check_changes.outputs.rust == 'true' + if: github.event_name != 'workflow_dispatch' && steps.check_changes.outputs.rust == 'true' run: echo "src-tauri changed, running clippy lint." + - name: Manual trigger - always run + if: github.event_name == 'workflow_dispatch' + run: | + echo "Manual trigger detected: skipping changes check and running clippy." + - name: Checkout Repository uses: actions/checkout@v4