From 9a299346549466884c24ca8c867cbd1fec89ffeb Mon Sep 17 00:00:00 2001 From: violet-dev Date: Sun, 8 Sep 2024 08:59:44 +0900 Subject: [PATCH] Skip ci test --- .github/workflows/violet-build.yml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/violet-build.yml b/.github/workflows/violet-build.yml index 0323f67cb..8cdd481ed 100644 --- a/.github/workflows/violet-build.yml +++ b/.github/workflows/violet-build.yml @@ -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: @@ -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 @@ -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