chore(ci): Add required checks job for lint cocoapods specs #6007
+63
−14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📜 Description
Implemented the migration of the
Lint CocoaPods Specs
workflow (lint-cocoapods-specs.yml
) fromon.pull_request.paths
filtering to afiles-changed
job usingdorny/paths-filter
. This includes:run_lint_cocoapods_Specs_for_prs
in.github/file-filters.yml
.paths
filter from the workflow'son.pull_request
.files-changed
job, making the mainlint_cocoapods_specs
job conditional, and adding alint_cocoapods_Specs-required-check
job for required checks.This ensures the workflow runs conditionally for PRs based on file changes, but always for schedule/workflow_dispatch events, and provides a reliable required check.
💡 Motivation and Context
This change is part of a larger effort to migrate all workflows using
on.[event].paths
filtering to use afiles-changed
job withdorny/paths-filter
. This approach allows for more robust required checks by introducing a dedicated job that always runs and serves as the main indicator for branch protection rules.Fixes #5959.
See #5951 for full context on the migration strategy and #5893 for an example implementation.
💚 How did you test it?
The CI changes will be validated by observing the workflow runs on this pull request.
📝 Checklist
You have to check all boxes before merging:
sendDefaultPII
is enabled.#skip-changelog