Skip to content

Commit 560d608

Browse files
committed
Don't run tests or docker build if the only changes are to static files
1 parent 082924c commit 560d608

3 files changed

Lines changed: 51 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,29 @@
44
name: Build
55

66
# Run this Build for all pushes / PRs to current branch
7-
on: [push, pull_request]
7+
on:
8+
push:
9+
# Don't run if PR is only updating static documentation or IDE/editor rules
10+
paths-ignore:
11+
- '.editorconfig'
12+
- '.gitignore'
13+
- '.vscode/*'
14+
- 'docs/*'
15+
- 'LICENSE'
16+
- 'LICENSES_THIRD_PARTY'
17+
- 'NOTICE'
18+
- '**/*.md'
19+
pull_request:
20+
# Don't run if PR is only updating static documentation or IDE/editor rules
21+
paths-ignore:
22+
- '.editorconfig'
23+
- '.gitignore'
24+
- '.vscode/*'
25+
- 'docs/*'
26+
- 'LICENSE'
27+
- 'LICENSES_THIRD_PARTY'
28+
- 'NOTICE'
29+
- '**/*.md'
830

931
permissions:
1032
contents: read # to fetch code (actions/checkout)

.github/workflows/codescan.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ on:
1515
branches:
1616
- main
1717
- 'dspace-**'
18-
# Don't run if PR is only updating static documentation
18+
# Don't run if PR is only updating static documentation or IDE/editor rules
1919
paths-ignore:
20+
- '.editorconfig'
21+
- '.gitignore'
22+
- '.vscode/*'
23+
- 'docs/*'
24+
- 'LICENSE'
25+
- 'LICENSES_THIRD_PARTY'
26+
- 'NOTICE'
2027
- '**/*.md'
21-
- '**/*.txt'
2228
schedule:
2329
- cron: "37 0 * * 1"
2430

.github/workflows/docker.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,27 @@ on:
1313
- 'dspace-**'
1414
tags:
1515
- 'dspace-**'
16+
# Don't run if PR is only updating static documentation or IDE/editor rules
17+
paths-ignore:
18+
- '.editorconfig'
19+
- '.gitignore'
20+
- '.vscode/*'
21+
- 'docs/*'
22+
- 'LICENSE'
23+
- 'LICENSES_THIRD_PARTY'
24+
- 'NOTICE'
25+
- '**/*.md'
1626
pull_request:
27+
# Don't run if PR is only updating static documentation or IDE/editor rules
28+
paths-ignore:
29+
- '.editorconfig'
30+
- '.gitignore'
31+
- '.vscode/*'
32+
- 'docs/*'
33+
- 'LICENSE'
34+
- 'LICENSES_THIRD_PARTY'
35+
- 'NOTICE'
36+
- '**/*.md'
1737

1838
permissions:
1939
contents: read # to fetch code (actions/checkout)

0 commit comments

Comments
 (0)