Skip to content

Commit d0a077c

Browse files
committed
Adjust ci workflow to ignore certain files and commit types
1 parent 9a1694c commit d0a077c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
- development
1313
tags:
1414
- 'v[0-9]+.[0-9]+.[0-9]+*'
15+
paths-ignore:
16+
- '**/*.md' # Ignore markdown files
17+
- '**/LICENSE'
18+
- 'scripts/**'
1519
pull_request:
1620
branches:
1721
- main
@@ -20,9 +24,11 @@ on:
2024
- 'sdk-release/**'
2125
- 'feature/**'
2226
- development
27+
2328

2429
jobs:
2530
build:
31+
if: "!startsWith(github.event.head_commit.message, 'style:') && !startsWith(github.event.head_commit.message, 'docs:')" #do not run workflow on style or documentation changes
2632
name: Build
2733
runs-on: ubuntu-latest
2834

@@ -63,6 +69,7 @@ jobs:
6369
path: target/
6470

6571
test:
72+
if: "!startsWith(github.event.head_commit.message, 'style:') && !startsWith(github.event.head_commit.message, 'docs:')" #do not run workflow on style or documentation changes
6673
name: Test
6774
runs-on: ubuntu-latest
6875
needs: build # Ensure build job runs before this one

0 commit comments

Comments
 (0)