diff --git a/.github/workflows/rtx.yml b/.github/workflows/rtx.yml index c81223be7..0e2118066 100644 --- a/.github/workflows/rtx.yml +++ b/.github/workflows/rtx.yml @@ -58,7 +58,7 @@ jobs: cache-provider: buildjet - run: sudo apt-get update; sudo apt-get install shfmt shellcheck - uses: taiki-e/install-action@just - - run: just lint-fix + - run: just lint-fix render-all - uses: EndBug/add-and-commit@v9 with: push: true diff --git a/justfile b/justfile index 5a35f7ff6..12f543408 100644 --- a/justfile +++ b/justfile @@ -99,6 +99,8 @@ lint-fix: just --unstable --fmt npx prettier -w $(git ls-files '*.md' '*.yml' '*.yaml') +render-all: render-help render-completions render-mangen + # regenerate README.md render-help: build NO_COLOR=1 rtx render-help @@ -116,7 +118,7 @@ render-mangen: build NO_COLOR=1 rtx render-mangen # called by lefthook precommit hook -pre-commit: render-help render-completions render-mangen lint +pre-commit: render-all lint git add README.md git add completions git add man