mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-13 03:42:35 -06:00
f272af65f6
Fixes #3915 Signed-off-by: Anders Eknert <anders@eknert.com>
20 lines
361 B
Bash
Executable File
20 lines
361 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
OPA_DIR=$(dirname "${BASH_SOURCE}")/..
|
|
|
|
cd "${OPA_DIR}"
|
|
|
|
git add docs/content/cli.md
|
|
|
|
if [[ -z "$(git diff --name-only --cached)" ]]; then
|
|
echo "No CLI doc changes to commit"
|
|
exit 1
|
|
fi
|
|
|
|
git commit -m "docs: Update generated CLI docs"
|
|
|
|
echo ""
|
|
echo "Committed changes for files:"
|
|
git diff-tree --no-commit-id --name-only -r HEAD
|
|
echo ""
|