diff --git a/.github/workflows/cocoapods-integration.yml b/.github/workflows/cocoapods-integration.yml index bd82129d66f..0e08b9a3a6f 100644 --- a/.github/workflows/cocoapods-integration.yml +++ b/.github/workflows/cocoapods-integration.yml @@ -18,6 +18,7 @@ jobs: tests: # Don't run on private repo unless it is a PR. if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' + || github.event_name == 'workflow_dispatch' runs-on: macos-14 steps: diff --git a/.github/workflows/notice_generation.yml b/.github/workflows/notice_generation.yml index 579db732cbc..58f9a4345b8 100644 --- a/.github/workflows/notice_generation.yml +++ b/.github/workflows/notice_generation.yml @@ -11,7 +11,7 @@ on: jobs: generate_a_notice: # Don't run on private repo. - if: github.repository == 'Firebase/firebase-ios-sdk' + if: github.repository == 'Firebase/firebase-ios-sdk' || github.event_name == 'workflow_dispatch' runs-on: macos-14 name: Generate NOTICES env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d934918c71..3722efa96da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,7 +107,7 @@ jobs: buildup_SpecsReleasing_repo: needs: [buildup_SpecsReleasing_repo_FirebaseCore, specs_checking] # Don't run on private repo unless it is a PR. - if: github.repository == 'Firebase/firebase-ios-sdk' + if: github.repository == 'Firebase/firebase-ios-sdk' || github.event_name == 'workflow_dispatch' runs-on: macos-14 strategy: fail-fast: false diff --git a/ReleaseTooling/Sources/ManifestParser/GHAMatrixSpecCollector.swift b/ReleaseTooling/Sources/ManifestParser/GHAMatrixSpecCollector.swift index 40541c73ff2..fd942698c4c 100644 --- a/ReleaseTooling/Sources/ManifestParser/GHAMatrixSpecCollector.swift +++ b/ReleaseTooling/Sources/ManifestParser/GHAMatrixSpecCollector.swift @@ -31,11 +31,10 @@ struct SDKPodspec: Codable { struct GHAMatrixSpecCollector { var SDKRepoURL: URL var outputSpecFileURL: URL - var excludedSDKs: [String] = [] func getPodsInManifest(_ manifest: Manifest) -> [String: SDKPodspec] { var podsMap: [String: SDKPodspec] = [:] - for pod in manifest.pods { + for pod in manifest.pods.filter({ $0.releasing }) { podsMap[pod.name] = SDKPodspec(podspec: pod.name, allowWarnings: pod.allowWarnings) } return podsMap diff --git a/ReleaseTooling/Sources/ManifestParser/main.swift b/ReleaseTooling/Sources/ManifestParser/main.swift index a6d976a0f21..88cd76159f0 100644 --- a/ReleaseTooling/Sources/ManifestParser/main.swift +++ b/ReleaseTooling/Sources/ManifestParser/main.swift @@ -42,15 +42,12 @@ struct ManifestParser: ParsableCommand { }) var outputFilePath: URL - @Option(parsing: .upToNextOption, help: "Podspec files that will not be included.") - var excludedSpecs: [String] - @Flag(help: "Parsing mode for manifest") var mode: ParsingMode func parsePodNames(_ manifest: Manifest) throws { var output: [String] = [] - for pod in manifest.pods { + for pod in manifest.pods.filter({ $0.releasing }) { output.append(pod.name) } do { @@ -69,9 +66,7 @@ struct ManifestParser: ParsableCommand { try parsePodNames(FirebaseManifest.shared) case .forGHAMatrixGeneration: guard let sdkRepoURL = SDKRepoURL else { - throw fatalError( - "--sdk-repo-url should be specified when --for-gha-matrix-generation is on." - ) + fatalError("--sdk-repo-url should be specified when --for-gha-matrix-generation is on.") } let specCollector = GHAMatrixSpecCollector( SDKRepoURL: sdkRepoURL,