mirror of
https://forgejo.mixinet.net/actions/checkout.git
synced 2025-06-15 14:50:45 -06:00
utl-helper.ts
now leverages well-known environment variables.
This commit is contained in:
parent
eef61447b9
commit
e8e821983d
4 changed files with 29 additions and 30 deletions
|
@ -88,7 +88,7 @@ export async function getDefaultBranch(
|
|||
return await retryHelper.execute(async () => {
|
||||
core.info('Retrieving the default branch name')
|
||||
const octokit = github.getOctokit(authToken, {
|
||||
baseUrl: getServerApiUrl(baseUrl)
|
||||
baseUrl: getServerApiUrl()
|
||||
})
|
||||
let result: string
|
||||
try {
|
||||
|
@ -131,7 +131,7 @@ async function downloadArchive(
|
|||
baseUrl?: string
|
||||
): Promise<Buffer> {
|
||||
const octokit = github.getOctokit(authToken, {
|
||||
baseUrl: getServerApiUrl(baseUrl)
|
||||
baseUrl: getServerApiUrl()
|
||||
})
|
||||
const download = IS_WINDOWS
|
||||
? octokit.rest.repos.downloadZipballArchive
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue