Skip to content

Commit

Permalink
fix(): correct usage of paths-filter action
Browse files Browse the repository at this point in the history
  • Loading branch information
Skraye committed Feb 5, 2025
1 parent 63341ce commit ba77663
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/workflow-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,19 @@ jobs:
- 'ui/src/translations/**'
backend:
- '!ui/**'
- '**'
- '!.github/**'
- '**!(.github)'
token: ${{ secrets.GITHUB_TOKEN }}

frontend:
name: 'Check Frontend'
needs: file-changes
runs-on: ubuntu-latest
timeout-minutes: 60
if: "needs.file-changes.outputs.changes.ui == 'true'"
if: "needs.file-changes.outputs.ui == 'true'"
steps:
- id: generate-translations
name: Generate translations
if: "needs.file-changes.outputs.changes.translations == 'true'"
if: "needs.file-changes.outputs.translations == 'true'"
uses: ./.github/actions/action-generate-translations
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
Expand All @@ -59,13 +58,13 @@ jobs:
needs: file-changes
runs-on: ubuntu-latest
timeout-minutes: 60
if: needs.file-changes.outputs.changes.backend == 'true'
if: needs.file-changes.outputs.backend == 'true'
steps:
- name: Backend test
uses: ./.github/actions/action-backend-test

build-artifacts:
if: "needs.file-changes.outputs.changes.backend == 'true' || needs.file-changes.outputs.changes.ui == 'true'"
if: "needs.file-changes.outputs.backend == 'true' || needs.file-changes.outputs.ui == 'true'"
name: Build artifacts
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit ba77663

Please sign in to comment.