Skip to content

Commit f330881

Browse files
committed
fix: use negative path patterns instead of paths-ignore
GitHub Actions doesn't allow both 'paths' and 'paths-ignore' in the same event. Using '!Source/Data/**' negative pattern instead to exclude Source/Data while keeping all other path filters.
1 parent 249ca7f commit f330881

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ on:
1212
- '*.xcodeproj/**'
1313
- '*.xcworkspace/**'
1414
- '.github/workflows/codeql.yml'
15-
paths-ignore:
16-
- 'Source/Data/**'
15+
- '!Source/Data/**'
1716

1817
pull_request:
1918
branches: [ "master" ]
@@ -26,8 +25,7 @@ on:
2625
- '*.xcodeproj/**'
2726
- '*.xcworkspace/**'
2827
- '.github/workflows/codeql.yml'
29-
paths-ignore:
30-
- 'Source/Data/**'
28+
- '!Source/Data/**'
3129

3230
schedule:
3331
- cron: '0 0 * * 0'

.github/workflows/continuous-integration-workflow-xcode-latest.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ on:
1010
- '*.xcodeproj/**'
1111
- '*.xcworkspace/**'
1212
- '.github/workflows/continuous-integration-workflow-xcode-latest.yml'
13-
paths-ignore:
14-
- 'Source/Data/**'
13+
- '!Source/Data/**'
1514
pull_request:
1615
paths:
1716
- '**/*.swift'
@@ -22,8 +21,7 @@ on:
2221
- '*.xcodeproj/**'
2322
- '*.xcworkspace/**'
2423
- '.github/workflows/continuous-integration-workflow-xcode-latest.yml'
25-
paths-ignore:
26-
- 'Source/Data/**'
24+
- '!Source/Data/**'
2725

2826
jobs:
2927
build:

0 commit comments

Comments
 (0)