Skip to content

Commit

Permalink
chore: don't run build and publish workflow when not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
AntsyLich committed May 2, 2024
1 parent a8e92e5 commit 6b25d36
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@ on:
push:
branches:
- main
paths:
- '**'
- '!**.md'
- '!.github/**'
- '.github/workflows/build.yml'
pull_request:
branches:
- main
paths:
- '**'
- '!**.md'
- '!.github/**'
- '.github/workflows/build.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
push:
branches:
- main
paths:
- '**'
- '!**.md'
- '!.github/**'
- '.github/workflows/publish.yml'
tags:
- v*

Expand Down

0 comments on commit 6b25d36

Please sign in to comment.