Browse Source

[GitHub Actions] Update paths pattern

https://github.blog/changelog/2019-09-30-github-actions-event-filtering-updates/
Norio Nomura 5 years ago
parent
commit
7ca4aa8228
3 changed files with 20 additions and 26 deletions
  1. 8 10
      .github/workflows/pod_lib_lint.yml
  2. 4 6
      .github/workflows/swiftpm.yml
  3. 8 10
      .github/workflows/xcodebuild.yml

+ 8 - 10
.github/workflows/pod_lib_lint.yml

@@ -6,20 +6,18 @@ on:
     paths: 
       - '.github/workflows/pod_lib_lint.yml'
       - '*.podspec'
-      - 'Base32.xcodeproj/*'
-      - 'Base32.xcodeproj/*/*'
-      - 'Base32.xcodeproj/*/*/*'
-      - 'Sources/*/*'
-      - 'Tests/*/*'
+      - 'Base32.xcodeproj/**'
+      - 'Sources/**'
+      - 'Tests/**'
+      - '!Tests/LinuxMain.swift'
   pull_request:
     paths: 
       - '.github/workflows/pod_lib_lint.yml'
       - '*.podspec'
-      - 'Base32.xcodeproj/*'
-      - 'Base32.xcodeproj/*/*'
-      - 'Base32.xcodeproj/*/*/*'
-      - 'Sources/*/*'
-      - 'Tests/*/*'
+      - 'Base32.xcodeproj/**'
+      - 'Sources/**'
+      - 'Tests/**'
+      - '!Tests/LinuxMain.swift'
 
 jobs:
   pod_lib_lint:

+ 4 - 6
.github/workflows/swiftpm.yml

@@ -6,16 +6,14 @@ on:
     paths: 
       - '.github/workflows/swiftpm.yml'
       - 'Package*'
-      - 'Sources/*/*'
-      - 'Tests/*'
-      - 'Tests/*/*'
+      - 'Sources/**'
+      - 'Tests/**'
   pull_request:
     paths: 
       - '.github/workflows/swiftpm.yml'
       - 'Package*'
-      - 'Sources/*/*'
-      - 'Tests/*'
-      - 'Tests/*/*'
+      - 'Sources/**'
+      - 'Tests/**'
 
 jobs:
   Xcode:

+ 8 - 10
.github/workflows/xcodebuild.yml

@@ -5,19 +5,17 @@ on:
     branches: [master]
     paths: 
       - '.github/workflows/xcodebuild.yml'
-      - 'Base32.xcodeproj/*'
-      - 'Base32.xcodeproj/*/*'
-      - 'Base32.xcodeproj/*/*/*'
-      - 'Sources/*/*'
-      - 'Tests/*/*'
+      - 'Base32.xcodeproj/**'
+      - 'Sources/**'
+      - 'Tests/**'
+      - '!Tests/LinuxMain.swift'
   pull_request:
     paths: 
       - '.github/workflows/xcodebuild.yml'
-      - 'Base32.xcodeproj/*'
-      - 'Base32.xcodeproj/*/*'
-      - 'Base32.xcodeproj/*/*/*'
-      - 'Sources/*/*'
-      - 'Tests/*/*'
+      - 'Base32.xcodeproj/**'
+      - 'Sources/**'
+      - 'Tests/**'
+      - '!Tests/LinuxMain.swift'
 
 jobs:
   xcodebuild: