diff --git a/scripts/docs-check.sh b/scripts/docs-check.sh index 6933cd43..c0f000a8 100644 --- a/scripts/docs-check.sh +++ b/scripts/docs-check.sh @@ -1,6 +1,11 @@ echo "prev commit: $CACHED_COMMIT_REF" echo "current commit: $COMMIT_REF" git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF docs package.json pnpm-lock.yaml netlify.toml scripts/docs-check.sh -status=$? -echo "diff exit code: $status" -exit $status \ No newline at end of file +has_diff=$? +git describe --exact-match --tags $(git log -n1 --pretty='%h') +has_tag=$? + +echo "diff exit code: $has_diff" +echo "tag exit code: $has_tag" + +exit $(($has_diff || $has_tag)) \ No newline at end of file