Skip to content

Commit

Permalink
Adjust ci workflow to ignore certain files and commit types
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbalakirev committed Dec 15, 2024
1 parent 9a1694c commit d0a077c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
- development
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
paths-ignore:
- '**/*.md' # Ignore markdown files
- '**/LICENSE'
- 'scripts/**'
pull_request:
branches:
- main
Expand All @@ -20,9 +24,11 @@ on:
- 'sdk-release/**'
- 'feature/**'
- development


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

Expand Down Expand Up @@ -63,6 +69,7 @@ jobs:
path: target/

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

0 comments on commit d0a077c

Please sign in to comment.