From 6432b474cf9597d0d17103da32c12084f66fda88 Mon Sep 17 00:00:00 2001 From: Arjun Suresh Date: Thu, 24 Jul 2025 13:23:17 +0100 Subject: [PATCH 1/2] Update document-scripts.yml: don't commit unless there are changes to READMEs --- .github/workflows/document-scripts.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/document-scripts.yml b/.github/workflows/document-scripts.yml index 9298efbf9..53b621548 100644 --- a/.github/workflows/document-scripts.yml +++ b/.github/workflows/document-scripts.yml @@ -76,8 +76,7 @@ jobs: git config --global user.name github-actions[bot] git config --global user.email "github-actions[bot]@users.noreply.github.com" # Commit changes - git commit -m '[Automated Commit] Document ${{ matrix.modified_metas.file}} [skip ci]' - git push + git diff-index --quiet HEAD || (git commit -am "[Automated Commit] Document ${{ matrix.modified_metas.file}} [skip ci]" ) && git push) From edc02a849d5e7b08524fa074391a4b0a0ac86382 Mon Sep 17 00:00:00 2001 From: Arjun Suresh Date: Fri, 25 Jul 2025 03:04:58 +0530 Subject: [PATCH 2/2] Improve docs template --- automation/script/doc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/automation/script/doc.py b/automation/script/doc.py index 7c8fb6538..340d3805c 100644 --- a/automation/script/doc.py +++ b/automation/script/doc.py @@ -76,10 +76,10 @@ def get_setup_readme(script_repo): if '@' in repo_name: repo_name = repo_name.split('@')[1] - setup_readme = f"""`mlcflow` stores all local data under `$HOME/MLC` by default. So, if there is space constraint on the home directory and you have more space on say `/mnt/user`, you can do + setup_readme = f"""`mlcflow` stores all local data under `$HOME/MLC` by default. So, if there is space constraint on the home directory and you have more space on say `/mnt/$USER`, you can do ``` -mkdir /mnt/user/MLC -ln -s /mnt/user/MLC $HOME/MLC +mkdir /mnt/$USER/MLC +ln -s /mnt/$USER/MLC $HOME/MLC ``` You can also use the `ENV` variable `MLC_REPOS` to control this location but this will need a set after every system reboot.