From ca5c7b6b98c0e312915efdaae54702092a1b4854 Mon Sep 17 00:00:00 2001 From: Hiraku Date: Tue, 17 Oct 2023 21:11:03 +0200 Subject: [PATCH] feat: add support for alternative git provider --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8c02fff..537a500 100644 --- a/index.js +++ b/index.js @@ -240,7 +240,7 @@ const pkg = getPackageJson(); ); } - const remoteRepo = `https://${process.env.GITHUB_ACTOR}:${process.env.GITHUB_TOKEN}@github.com/${process.env.GITHUB_REPOSITORY}.git`; + const remoteRepo = `https://${process.env.GITHUB_ACTOR}:${process.env.GITHUB_TOKEN}@${process.env.CUSTOM_GIT_URL || "github.com"}/${process.env.GITHUB_REPOSITORY}.git`; if (process.env['INPUT_SKIP-TAG'] !== 'true') { await runInWorkspace('git', ['tag', newVersion]); if (process.env['INPUT_SKIP-PUSH'] !== 'true') {