Skip to content

Commit e49ecaf

Browse files
committed
ci: prevent CD workflow from running on unrelated commits
1 parent b63886d commit e49ecaf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
permissions:
1313
contents: write
1414
runs-on: ubuntu-latest
15+
if: contains(github.event.head_commit.modified, 'src/')
1516
steps:
1617
- name: Checkout code
1718
uses: actions/checkout@v3

0 commit comments

Comments
 (0)