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
26
26
fatal " yq could not be found. Please install yq to proceed."
27
27
fi
28
28
29
- if [ ! -f Package.swift ]; then
29
+ package_files=$( find . -maxdepth 1 -name ' Package*.swift' )
30
+ if [ -z " $package_files " ]; then
30
31
fatal " Package.swift not found. Please ensure you are running this script from the root of a Swift package."
31
32
fi
32
33
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 "
35
37
36
38
package.dependencies.append(
37
39
.package(url: "https://github.com/swiftlang/swift-docc-plugin", "1.0.0"..<"1.4.0")
38
40
)
39
41
EOF
42
+ done
40
43
41
44
log " Checking documentation targets..."
42
45
for target in $( yq -r ' .builder.configs[].documentation_targets[]' .spi.yml) ; do
You can’t perform that action at this time.
0 commit comments