File tree Expand file tree Collapse file tree 5 files changed +6
-11
lines changed
ReleaseTooling/Sources/ManifestParser Expand file tree Collapse file tree 5 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 18
18
tests :
19
19
# Don't run on private repo unless it is a PR.
20
20
if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
21
+ || github.event_name == 'workflow_dispatch'
21
22
22
23
runs-on : macos-14
23
24
steps :
Original file line number Diff line number Diff line change 11
11
jobs :
12
12
generate_a_notice :
13
13
# Don't run on private repo.
14
- if : github.repository == 'Firebase/firebase-ios-sdk'
14
+ if : github.repository == 'Firebase/firebase-ios-sdk' || github.event_name == 'workflow_dispatch'
15
15
runs-on : macos-14
16
16
name : Generate NOTICES
17
17
env :
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ jobs:
107
107
buildup_SpecsReleasing_repo :
108
108
needs : [buildup_SpecsReleasing_repo_FirebaseCore, specs_checking]
109
109
# Don't run on private repo unless it is a PR.
110
- if : github.repository == 'Firebase/firebase-ios-sdk'
110
+ if : github.repository == 'Firebase/firebase-ios-sdk' || github.event_name == 'workflow_dispatch'
111
111
runs-on : macos-14
112
112
strategy :
113
113
fail-fast : false
Original file line number Diff line number Diff line change @@ -31,11 +31,10 @@ struct SDKPodspec: Codable {
31
31
struct GHAMatrixSpecCollector {
32
32
var SDKRepoURL : URL
33
33
var outputSpecFileURL : URL
34
- var excludedSDKs : [ String ] = [ ]
35
34
36
35
func getPodsInManifest( _ manifest: Manifest ) -> [ String : SDKPodspec ] {
37
36
var podsMap : [ String : SDKPodspec ] = [ : ]
38
- for pod in manifest. pods {
37
+ for pod in manifest. pods. filter ( { $0 . releasing } ) {
39
38
podsMap [ pod. name] = SDKPodspec ( podspec: pod. name, allowWarnings: pod. allowWarnings)
40
39
}
41
40
return podsMap
Original file line number Diff line number Diff line change @@ -42,15 +42,12 @@ struct ManifestParser: ParsableCommand {
42
42
} )
43
43
var outputFilePath : URL
44
44
45
- @Option ( parsing: . upToNextOption, help: " Podspec files that will not be included. " )
46
- var excludedSpecs : [ String ]
47
-
48
45
@Flag ( help: " Parsing mode for manifest " )
49
46
var mode : ParsingMode
50
47
51
48
func parsePodNames( _ manifest: Manifest ) throws {
52
49
var output : [ String ] = [ ]
53
- for pod in manifest. pods {
50
+ for pod in manifest. pods. filter ( { $0 . releasing } ) {
54
51
output. append ( pod. name)
55
52
}
56
53
do {
@@ -69,9 +66,7 @@ struct ManifestParser: ParsableCommand {
69
66
try parsePodNames ( FirebaseManifest . shared)
70
67
case . forGHAMatrixGeneration:
71
68
guard let sdkRepoURL = SDKRepoURL else {
72
- throw fatalError (
73
- " --sdk-repo-url should be specified when --for-gha-matrix-generation is on. "
74
- )
69
+ fatalError ( " --sdk-repo-url should be specified when --for-gha-matrix-generation is on. " )
75
70
}
76
71
let specCollector = GHAMatrixSpecCollector (
77
72
SDKRepoURL: sdkRepoURL,
You can’t perform that action at this time.
0 commit comments