From d745f39355742541c9a502587524683bc876a5da Mon Sep 17 00:00:00 2001 From: SuperDragonXD <70206496+SuperDragonXD@users.noreply.github.com> Date: Sun, 3 Nov 2024 09:55:15 +0800 Subject: [PATCH] `build_debug_apk.yml` - improve workflow filtering This commit improves the workflow filtering logic, allowing the actions to run if both non-filtered files and filtered files are changed. --- .github/workflows/build_debug_apk.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_debug_apk.yml b/.github/workflows/build_debug_apk.yml index ef6cb2d7a30..22644a25873 100644 --- a/.github/workflows/build_debug_apk.yml +++ b/.github/workflows/build_debug_apk.yml @@ -11,7 +11,7 @@ jobs: check-paths: runs-on: ubuntu-latest outputs: - skip_steps: ${{ steps.filter.outputs.workflows }} + skip_steps: ${{ steps.filter.outputs.workflows && !steps.nofilter.outputs.workflows }} steps: - name: Check out repository uses: actions/checkout@v4 @@ -32,6 +32,21 @@ jobs: - '.gitattributes' - '.github/labeler.yml' - '.github/release.yml' + - name: Check for non ignored paths + uses: dorny/paths-filter@v3 + id: nofilter + with: + filters: | + workflows: + - '!**.md' + - '!LICENSE' + - '!.idea/**' + - '!docs/**' + - '!.github/ISSUE_TEMPLATE/**' + - '!.gitignore' + - '!.gitattributes' + - '!.github/labeler.yml' + - '!.github/release.yml' build-debug-apk: runs-on: ubuntu-latest needs: check-paths @@ -66,7 +81,6 @@ jobs: with: name: Debug APK path: app/build/outputs/apk/app/debug/*.apk - check-style: runs-on: ubuntu-latest needs: check-paths