Skip to content

Commit 04b14c1

Browse files
Commit updated files as part of make target
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
1 parent 6d76aed commit 04b14c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ BINS := mysqlctl mysqlctld vtaclcheck topo2topo vtbackup vtclient vtcombo \
5959
# `make mysqlctl-docs COBRADOC_VERSION_PAIRS="main:22.0" VITESS_DIR=~/go/src/github.com/vitessio/vitess`
6060
%-docs:
6161
go run ./tools/cobradocs/ --vitess-dir "${VITESS_DIR}" --version-pairs "${COBRADOC_VERSION_PAIRS}" $(patsubst %-docs,%,$@)
62+
COMMIT_HASH=$(shell cd $(VITESS_DIR) && git rev-parse --short HEAD) && \
63+
git add -u content && git commit -s -m "Update cobradocs for $$COMMIT_HASH"
6264

6365
# Target to run them all.
6466
.PHONY: generated-docs

0 commit comments

Comments
 (0)