Skip to content

Commit

Permalink
🔧 Add path filters to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
obecker authored Jan 23, 2024
1 parent 2735728 commit f33e360
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,21 @@ name: Build backend
on:
push:
branches: [ main ]
paths:
- '.github/workflows/**'
- 'backend/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/**'
- 'backend/**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,22 @@ name: Build frontend
on:
push:
branches: [ "main" ]
paths:
- '.github/workflows/**'
- 'frontend/**'
pull_request:
branches: [ "main" ]
paths:
- '.github/workflows/**'
- 'frontend/**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4 # see https://github.com/actions/setup-node
with:
node-version: '21.x'
Expand Down

0 comments on commit f33e360

Please sign in to comment.