Skip to content

Commit

Permalink
Merge pull request #501 from project-violet/skipped-ci
Browse files Browse the repository at this point in the history
Skip ci
  • Loading branch information
violet-dev authored Sep 8, 2024
2 parents 769a2a4 + 2731b3d commit 6092f66
Showing 1 changed file with 31 additions and 8 deletions.
39 changes: 31 additions & 8 deletions .github/workflows/violet-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,35 @@ on:
pull_request:
branches:
- "dev"
paths:
- ".github/workflows/violet-build.yml"
- "violet/**"
merge_group:
workflow_dispatch:

jobs:
format:
app-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:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha || github.event.merge_group.head_sha }}

# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
src:
- ".github/workflows/violet-build.yml"
- "violet/**"
app-format:
needs: app-changes
if: ${{ needs.app-changes.outputs.src == 'true' }}
runs-on: ubuntu-latest
defaults:
run:
Expand Down Expand Up @@ -43,9 +64,10 @@ jobs:
- name: Analyze
run: flutter analyze --no-fatal-infos

ios-build:
app-ios-build:
runs-on: macos-latest
needs: [format]
needs: [app-format, app-changes]
if: ${{ needs.app-changes.outputs.src == 'true' }}
defaults:
run:
working-directory: violet
Expand Down Expand Up @@ -97,9 +119,10 @@ jobs:
name: ipa-build
path: ./violet/Payload.ipa

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

0 comments on commit 6092f66

Please sign in to comment.