Skip to content

Commit

Permalink
build_debug_apk.yml - improve workflow filtering
Browse files Browse the repository at this point in the history
This commit improves the workflow filtering logic, allowing the actions to run if both non-filtered files and filtered files are changed.
  • Loading branch information
SuperDragonXD authored Nov 3, 2024
1 parent cdd76a3 commit d745f39
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/build_debug_apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d745f39

Please sign in to comment.