From 8317206fc48ae10c2bb137fb47761e6444cec1d2 Mon Sep 17 00:00:00 2001 From: gdlol Date: Sun, 27 Sep 2026 09:34:56 +0000 Subject: [PATCH] Fix renovate --- scripts/tasks/features/dotnet/renovate.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/tasks/features/dotnet/renovate.ts b/scripts/tasks/features/dotnet/renovate.ts index ddded58..f79431d 100644 --- a/scripts/tasks/features/dotnet/renovate.ts +++ b/scripts/tasks/features/dotnet/renovate.ts @@ -13,6 +13,7 @@ import type { Component, FeatureConfig } from "./generateConfig.js"; import { components, configPath, generateConfig, parseConfig, readConfig } from "./generateConfig.js"; const refreshBranch = "renovate"; +const refreshRef = `refs/heads/${refreshBranch}`; const title = "Update dotnet version pins"; const configFilepath = path.relative(projectRoot, configPath); const textDecoder = new TextDecoder(); @@ -74,7 +75,7 @@ const main = async (): Promise => { await git.commit({ fs, dir: projectRoot, - ref: refreshBranch, + ref: refreshRef, message: `${title}\n\n${body}`, author: { name: "Renovate", email: "" }, }); @@ -87,7 +88,7 @@ const main = async (): Promise => { http, dir: projectRoot, remote: remote.remote, - ref: refreshBranch, + ref: refreshRef, force: true, onAuth: () => ({ username: "git", password: token }), });