Skip to content

Commit 1c8350b

Browse files
authored
Merge pull request #63 from rnro/patch-1
Clarify check-docs.sh early-exit
2 parents 3fca720 + 1c463fd commit 1c8350b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/scripts/check-docs.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ log() { printf -- "** %s\n" "$*" >&2; }
1717
error() { printf -- "** ERROR: %s\n" "$*" >&2; }
1818
fatal() { error "$@"; exit 1; }
1919

20+
if [ ! -f .spi.yml ]; then
21+
log "No '.spi.yml' found, no documentation targets to check."
22+
exit 0
23+
fi
24+
2025
log "Editing Package.swift..."
2126
cat <<EOF >> "Package.swift"
2227
package.dependencies.append(

0 commit comments

Comments
 (0)