From fde03050379d532b357b6acc1e8fc7e72311c10a Mon Sep 17 00:00:00 2001 From: Jamie Tanna Date: Mon, 15 Dec 2025 11:21:29 +0000 Subject: [PATCH 1/3] feat: show Renovate CLI version more prominently in logs (#983) As noted in #969, it would be useful to have a more prominent output in the logs to indicate the version of the Renovate CLI being used. This would help with both personal debugging (for administrators of the GitHub Action) and for raising issues upstream. To do this, we can call the `--version` on the CLI, capture the output and report it back to the user. By using a Notice annotation, we can then make it more visible at the job- and step-level. We can then also wrap it in a `group`, so it's hidden in its own expandable group (with timing information). Closes #969. --- src/index.ts | 7 ++++++- src/renovate.ts | 13 ++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 20f156b9..45241fbd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,12 +1,17 @@ +import { group, notice, setFailed } from '@actions/core'; import { Input } from './input'; import { Renovate } from './renovate'; -import { setFailed } from '@actions/core'; async function run(): Promise { try { const input = new Input(); const renovate = new Renovate(input); + await group('Check Renovate version', async () => { + const version = await renovate.runDockerContainerForVersion(); + notice(version, { title: 'Renovate CLI version' }); + }); + await renovate.runDockerContainer(); } catch (error) { console.error(error); diff --git a/src/renovate.ts b/src/renovate.ts index 09c1b2c5..419ce53d 100644 --- a/src/renovate.ts +++ b/src/renovate.ts @@ -1,6 +1,6 @@ +import { exec, getExecOutput } from '@actions/exec'; import { Docker } from './docker'; import { Input } from './input'; -import { exec } from '@actions/exec'; import fs from 'node:fs/promises'; import path from 'node:path'; @@ -14,6 +14,17 @@ export class Renovate { this.docker = new Docker(input); } + async runDockerContainerForVersion(): Promise { + const command = `docker run -t --rm ${this.docker.image()} --version`; + + const { exitCode, stdout } = await getExecOutput(command); + if (exitCode !== 0) { + new Error(`'docker run' failed with exit code ${exitCode}.`); + } + + return stdout.trim(); + } + async runDockerContainer(): Promise { await this.validateArguments(); From 2fb813ee7f880facb8b31b424322c78004a64d74 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 15:27:01 +0000 Subject: [PATCH 2/3] chore(deps): update pnpm to v10.25.0 | datasource | package | from | to | | ---------- | ------- | ------- | ------- | | npm | pnpm | 10.24.0 | 10.25.0 | --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 99a379cc..c415c897 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "typescript": "5.9.3", "typescript-eslint": "8.48.1" }, - "packageManager": "pnpm@10.24.0", + "packageManager": "pnpm@10.25.0", "engines": { "node": "^20.9.0 || ^22.11.0 || ^24.11.0", "pnpm": "^10.0.0" From f5951c521b62b8fb767af3b6f4832177031a517f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 16:25:40 +0000 Subject: [PATCH 3/3] ci(deps): update renovate docker tag to v42.55.0 | datasource | package | from | to | | ---------- | ---------------------------- | ------- | ------- | | docker | ghcr.io/renovatebot/renovate | 42.54.1 | 42.55.0 | --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df8f1a95..f9121be9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ concurrency: cancel-in-progress: true env: - RENOVATE_VERSION: 42.54.1 # renovate: datasource=docker depName=renovate packageName=ghcr.io/renovatebot/renovate + RENOVATE_VERSION: 42.55.0 # renovate: datasource=docker depName=renovate packageName=ghcr.io/renovatebot/renovate jobs: prepare: