Skip to content

Commit 9042179

Browse files
authored
Merge pull request #94 from rauhul/fix-92
Check for requirements in check-docs.sh
2 parents f64594f + b929501 commit 9042179

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ if [ ! -f .spi.yml ]; then
2222
exit 0
2323
fi
2424

25+
if ! command -v yq &> /dev/null; then
26+
fatal "yq could not be found. Please install yq to proceed."
27+
fi
28+
29+
if [ ! -f Package.swift ]; then
30+
fatal "Package.swift not found. Please ensure you are running this script from the root of a Swift package."
31+
fi
32+
2533
log "Editing Package.swift..."
2634
cat <<EOF >> "Package.swift"
2735

0 commit comments

Comments
 (0)