File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
.github/workflows/scripts Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -26,17 +26,20 @@ if ! command -v yq &> /dev/null; then
2626 fatal " yq could not be found. Please install yq to proceed."
2727fi
2828
29- if [ ! -f Package.swift ]; then
29+ package_files=$( find . -maxdepth 1 -name ' Package*.swift' )
30+ if [ -z " $package_files " ]; then
3031 fatal " Package.swift not found. Please ensure you are running this script from the root of a Swift package."
3132fi
3233
33- log " Editing Package.swift..."
34- cat << EOF >> "Package.swift"
34+ for package_file in $package_files ; do
35+ log " Editing $package_file ..."
36+ cat << EOF >> "$package_file "
3537
3638package.dependencies.append(
3739 .package(url: "https://github.com/swiftlang/swift-docc-plugin", "1.0.0"..<"1.4.0")
3840)
3941EOF
42+ done
4043
4144log " Checking documentation targets..."
4245for target in $( yq -r ' .builder.configs[].documentation_targets[]' .spi.yml) ; do
You can’t perform that action at this time.
0 commit comments