mirror of
https://github.com/actions/checkout.git
synced 2026-05-23 01:55:54 +00:00
allow for subpaths in GITHUB_SERVER_URL
This commit is contained in:
parent
900f2210b1
commit
b5005fef89
2 changed files with 7 additions and 2 deletions
3
dist/index.js
vendored
3
dist/index.js
vendored
|
|
@ -2731,7 +2731,8 @@ function getFetchUrl(settings) {
|
|||
return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`;
|
||||
}
|
||||
// "origin" is SCHEME://HOSTNAME[:PORT]
|
||||
return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`;
|
||||
const serviceUrlBase = pruneSuffix(`${serviceUrl.origin}${serviceUrl.pathname}`, '/');
|
||||
return `${serviceUrlBase}/${encodedOwner}/${encodedName}`;
|
||||
}
|
||||
function getServerUrl(url) {
|
||||
let resolvedUrl = process.env['GITHUB_SERVER_URL'] || 'https://github.com';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue