Skip to content

Commit 9f647f7

Browse files
ci: Fix paths for prettier (#5272)
The path filters only applied to the root dir. Now they work for any files of .yml, .yaml, .json or .md in any directory.
1 parent 4ec088a commit 9f647f7

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

.github/workflows/lint-prettier.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,17 @@ on:
88
branches:
99
- main
1010
paths:
11-
- ".github/workflows/lint-prettier.yml"
12-
- "*.yml"
13-
- "*.yaml"
14-
- "*.json"
15-
- "*.md"
11+
- "**/*.yml"
12+
- "**/*.yaml"
13+
- "**/*.json"
14+
- "**/*.md"
1615

1716
pull_request:
1817
paths:
19-
- ".github/workflows/lint-prettier.yml"
20-
- "*.yml"
21-
- "*.yaml"
22-
- "*.json"
23-
- "*.md"
18+
- "**/*.yml"
19+
- "**/*.yaml"
20+
- "**/*.json"
21+
- "**/*.md"
2422

2523
jobs:
2624
lint-prettier:

.github/workflows/version-bump-util.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
- "./Sources/Sentry/SentryMeta.m"
1717
- "./Tests/HybridSDKTest/HybridPod.podspec"
1818
- "./Sources/Configuration/SDK.xcconfig"
19-
- "./Sources/Configuration/Versioning.xcconfig"
19+
- "./Sources/Configuration/Versioning.xcconfig"
2020
- "./Sources/Configuration/SentrySwiftUI.xcconfig"
2121
- "./Samples/Shared/Config/Versioning.xcconfig"
2222

0 commit comments

Comments
 (0)