Skip to content

Commit

Permalink
Merge pull request #63 from rnro/patch-1
Browse files Browse the repository at this point in the history
Clarify check-docs.sh early-exit
  • Loading branch information
shahmishal authored Nov 13, 2024
2 parents 3fca720 + 1c463fd commit 1c8350b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/scripts/check-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ log() { printf -- "** %s\n" "$*" >&2; }
error() { printf -- "** ERROR: %s\n" "$*" >&2; }
fatal() { error "$@"; exit 1; }

if [ ! -f .spi.yml ]; then
log "No '.spi.yml' found, no documentation targets to check."
exit 0
fi

log "Editing Package.swift..."
cat <<EOF >> "Package.swift"
package.dependencies.append(
Expand Down

0 comments on commit 1c8350b

Please sign in to comment.