Skip to content

Commit 9f12efb

Browse files
committed
Cleaner ignores for GitHub actions
1 parent 6f12958 commit 9f12efb

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.github/workflows/ci-earthly-gradle.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,32 @@ env:
55
# Workaround for: https://github.com/earthly/earthly/issues/4220
66
EARTHLY_DISABLE_REMOTE_REGISTRY_PROXY: true
77

8+
# Ignore cross-build files with Maven
89
on:
910
push:
1011
paths-ignore:
12+
# Generic files to ignore for building
1113
- '*.md'
1214
- 'images/**'
1315
# These ignores are specific to a cross-build against Maven
1416
- 'pom.xml'
15-
- 'mvnw*'
17+
- 'mvnw*' # Wraper scripts
1618
- '.mvn'
19+
- '.github/workflows/*maven*'
1720
# These ignores are specific to this project
1821
- 'run-with-maven.sh'
19-
- '.github/workflows/*maven*'
2022
pull_request:
2123
paths-ignore:
24+
# Generic files to ignore for building
2225
- '*.md'
2326
- 'images/**'
2427
# These ignores are specific to a cross-build against Maven
2528
- 'pom.xml'
26-
- 'mvnw*'
29+
- 'mvnw*' # Wrapper scripts
2730
- '.mvn'
31+
- '.github/workflows/*maven*'
2832
# These ignores are specific to this project
2933
- 'run-with-maven.sh'
30-
- '.github/workflows/*maven*'
3134

3235
jobs:
3336
build:

.github/workflows/ci-earthly-maven.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,34 @@ env:
55
# Workaround for: https://github.com/earthly/earthly/issues/4220
66
EARTHLY_DISABLE_REMOTE_REGISTRY_PROXY: true
77

8+
# Ignore cross-build files with Gradle
89
on:
910
push:
1011
paths-ignore:
12+
# Generic files to ignore for building
1113
- '*.md'
1214
- 'images/**'
1315
# These ignores are specific to a cross-build against Gradle
1416
- 'build.gradle'
15-
- 'gradle*'
17+
- 'gradle' # Directory is distinct from files in GitHub ignores
18+
- 'gradle*' # Wrapper scripts and properties
1619
- '.gradle'
20+
- '.github/workflows/*gradle*'
1721
# These ignores are specific to this project
1822
- 'run-with-gradle.sh'
19-
- '.github/workflows/*gradle*'
2023
pull_request:
2124
paths-ignore:
25+
# Generic files to ignore for building
2226
- '*.md'
2327
- 'images/**'
2428
# These ignores are specific to a cross-build against Gradle
2529
- 'build.gradle'
26-
- 'gradle*'
30+
- 'gradle' # Directory is distinct from files in GitHub ignores
31+
- 'gradle*' # Wrapper scripts and properties
2732
- '.gradle'
33+
- '.github/workflows/*gradle*'
2834
# These ignores are specific to this project
2935
- 'run-with-gradle.sh'
30-
- '.github/workflows/*gradle*'
3136
workflow_dispatch:
3237

3338
jobs:

0 commit comments

Comments
 (0)