mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-12 21:41:39 +02:00
12
dist/index.js
vendored
12
dist/index.js
vendored
@@ -26,7 +26,8 @@ function getGitHubInput () {
|
||||
repoUrl: core.getInput('repo-url') || process.env.GITHUB_REPOSITORY,
|
||||
apiUrl: core.getInput('github-api-url') || GITHUB_API_URL,
|
||||
graphqlUrl: (core.getInput('github-graphql-url') || '').replace(/\/graphql$/, '') || GITHUB_GRAPHQL_URL,
|
||||
token: core.getInput('token', { required: true })
|
||||
token: core.getInput('token', { required: true }),
|
||||
proxyServer: core.getInput('proxy-server') || undefined
|
||||
}
|
||||
}
|
||||
|
||||
@@ -112,9 +113,16 @@ const releasePlease = {
|
||||
}
|
||||
|
||||
function getGitHubInstance () {
|
||||
const { token, defaultBranch, apiUrl, graphqlUrl, repoUrl } = getGitHubInput()
|
||||
const { token, defaultBranch, apiUrl, graphqlUrl, repoUrl, proxyServer } = getGitHubInput()
|
||||
const [owner, repo] = repoUrl.split('/')
|
||||
|
||||
let proxy
|
||||
if (proxyServer) {
|
||||
const [host, port] = proxyServer.split(':')
|
||||
proxy = { host, port }
|
||||
}
|
||||
const githubCreateOpts = {
|
||||
proxy,
|
||||
owner,
|
||||
repo,
|
||||
apiUrl,
|
||||
|
||||
Reference in New Issue
Block a user