From da8f219bcb1930dab85f0587497d61feb481612e Mon Sep 17 00:00:00 2001 From: Lucas Amaral Date: Mon, 15 Jun 2026 04:45:30 -0300 Subject: [PATCH] ci: run docs-fix via Docker and track its Node version with Dependabot - docs-fix.yml: drop runner-native setup-node@18 / setup-python / 'yarn install' (redundant + broken: precommit_fix already runs markdownlint in a container, and there is no root package.json). Now: checkout -> make -C readmes precommit_fix -> capture/upload patch. - readmes/Dockerfile: node:20.16 -> node:26-slim (aligns with the docusaurus image) - dependabot.yml: track /readmes (docker) so the markdownlint image's Node version is bumped automatically instead of rotting in a workflow input. --- .github/dependabot.yml | 5 +++++ .github/workflows/docs-fix.yml | 15 +-------------- readmes/Dockerfile | 2 +- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7176301..f4c320f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -14,6 +14,11 @@ updates: schedule: interval: monthly + - package-ecosystem: docker + directory: /readmes + schedule: + interval: monthly + - package-ecosystem: npm directory: /docusaurus schedule: diff --git a/.github/workflows/docs-fix.yml b/.github/workflows/docs-fix.yml index dfdc646..5e5bb89 100644 --- a/.github/workflows/docs-fix.yml +++ b/.github/workflows/docs-fix.yml @@ -29,20 +29,7 @@ jobs: - name: Checkout code uses: actions/checkout@v6 - - name: Setup Node - uses: actions/setup-node@v6 - with: - node-version: '18' - - - name: Setup Python (if needed) - uses: actions/setup-python@v6 - with: - python-version: '3.8' - - - name: Install deps - run: yarn install --frozen-lockfile - - - name: Run precommit fix + - name: Run docs auto-fix run: make -C readmes precommit_fix - name: Show diff after fix diff --git a/readmes/Dockerfile b/readmes/Dockerfile index 29b21d9..ce32dd6 100644 --- a/readmes/Dockerfile +++ b/readmes/Dockerfile @@ -9,7 +9,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM node:20.16 +FROM node:26-slim RUN mkdir -p /readmes WORKDIR /readmes