Skip to content

Commit

Permalink
Skip ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
violet-dev committed Sep 7, 2024
1 parent 6f447d9 commit 9a29934
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/violet-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,30 @@ on:
pull_request:
branches:
- "dev"
paths:
- ".github/workflows/violet-build.yml"
- "violet/**"
merge_group:
workflow_dispatch:

jobs:
changes:
runs-on: ubuntu-latest
# Required permissions
permissions:
pull-requests: read
# Set job outputs to values from filter step
outputs:
src: ${{ steps.filter.outputs.src }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
src:
- "violet/**"
format:
needs: changes
if: ${{ needs.changes.outputs.src == 'true' }}
runs-on: ubuntu-latest
defaults:
run:
Expand Down Expand Up @@ -45,7 +61,8 @@ jobs:

ios-build:
runs-on: macos-latest
needs: [format]
needs: [format, changes]
if: ${{ needs.changes.outputs.src == 'true' }}
defaults:
run:
working-directory: violet
Expand Down Expand Up @@ -99,7 +116,8 @@ jobs:

android-build:
runs-on: ubuntu-latest
needs: [format]
needs: [format, changes]
if: ${{ needs.changes.outputs.src == 'true' }}
defaults:
run:
working-directory: violet
Expand Down

0 comments on commit 9a29934

Please sign in to comment.