Skip to content

Commit b5113a9

Browse files
authored
Cleanup script (#25)
1 parent d8d7070 commit b5113a9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: |
2525
make gen-doc
2626
# there should not be a diff
27-
git diff --quiet
27+
git diff --quiet || git diff
2828
build:
2929
name: Upload Release Asset
3030
runs-on: ubuntu-latest

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@ fmt: ## apply go format
1414

1515
gen-doc: ## generate markdown documentation
1616
rm -f ./docs/*
17-
go install cmd/gen-doc/gen-doc.go
18-
gen-doc
17+
go run cmd/gen-doc/gen-doc.go
1918
rm -f ./docs/koyeb_completion.md
2019
sed -i.bak 's/.*koyeb completion.*/fault/' ./docs/*.md
2120
sed -i.bak 's/### SEE ALSO.*//' ./docs/*.md
22-
sed -i.bak 's:.*\`\`\`\(.*\)\`\`\`:\1:p' ./docs/*.md
2321
cat ./docs/*.md >> ./docs/reference.md
2422
find ./docs -type f -not -name 'reference.md' -delete
2523

0 commit comments

Comments
 (0)