feat: add support for alternative git provider
This commit is contained in:
parent
06d220c011
commit
ca5c7b6b98
2
index.js
2
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') {
|
if (process.env['INPUT_SKIP-TAG'] !== 'true') {
|
||||||
await runInWorkspace('git', ['tag', newVersion]);
|
await runInWorkspace('git', ['tag', newVersion]);
|
||||||
if (process.env['INPUT_SKIP-PUSH'] !== 'true') {
|
if (process.env['INPUT_SKIP-PUSH'] !== 'true') {
|
||||||
|
|
Loading…
Reference in New Issue