Skip to content

Commit 0ab3df9

Browse files
authored
Merge pull request #1565 from dwertent/ignore-md-files
chore: Ignore markdown files and GitHub workflows in Docker and Go wo…
2 parents 56fb54d + f5bd4a4 commit 0ab3df9

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/docker_main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches:
66
- main
7+
paths-ignore:
8+
- '.github/**' # exclude .github directory
9+
- '**.md' # exclude all markdown files
710

811
jobs:
912
docker:

.github/workflows/go.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,19 @@ name: Go
33
on:
44
push:
55
branches: [main]
6+
paths:
7+
- '**' # include all files
8+
- '!.github/**' # exclude .github directory
9+
- '!**.md' # exclude all markdown files
10+
- 'doc-site/docs/reference/**.md' # include markdown files that are auto generated and need to be tested
11+
612
pull_request:
7-
branches: [main]
13+
paths:
14+
- '**' # include all files
15+
- '!.github/**' # exclude .github directory
16+
- '!**.md' # exclude all markdown files
17+
- 'doc-site/docs/reference/**.md' # include markdown files that are auto generated and need to be tested
18+
819
workflow_dispatch:
920

1021
jobs:

0 commit comments

Comments
 (0)