mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-12 22:11:35 +02:00
@@ -87,6 +87,7 @@ Automate releases with Conventional Commit Messages.
|
|||||||
| `group-pull-request-title-pattern` | sets the manifest pull request title for when releasing multiple packages grouped together in the one pull request |
|
| `group-pull-request-title-pattern` | sets the manifest pull request title for when releasing multiple packages grouped together in the one pull request |
|
||||||
| `release-search-depth` | when searching for the latest release SHAs, only consider the last N releases |
|
| `release-search-depth` | when searching for the latest release SHAs, only consider the last N releases |
|
||||||
| `commit-search-depth` | when fetching the list of commits to consider, only consider the last N commits |
|
| `commit-search-depth` | when fetching the list of commits to consider, only consider the last N commits |
|
||||||
|
| `proxy-server` | set proxy sever when you run this action behind a proxy. format is host:port e.g. proxy-host.com:8080 |
|
||||||
|
|
||||||
## GitHub credentials
|
## GitHub credentials
|
||||||
|
|
||||||
|
|||||||
@@ -160,6 +160,9 @@ inputs:
|
|||||||
commit-search-depth:
|
commit-search-depth:
|
||||||
description: 'when fetching the list of commits to consider, only consider the last N commits'
|
description: 'when fetching the list of commits to consider, only consider the last N commits'
|
||||||
required: false
|
required: false
|
||||||
|
proxy-server:
|
||||||
|
description: 'set proxy sever when you run this action behind a proxy. format is host:port e.g. proxy-host.com:8080'
|
||||||
|
required: false
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'node16'
|
using: 'node16'
|
||||||
|
|||||||
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,
|
repoUrl: core.getInput('repo-url') || process.env.GITHUB_REPOSITORY,
|
||||||
apiUrl: core.getInput('github-api-url') || GITHUB_API_URL,
|
apiUrl: core.getInput('github-api-url') || GITHUB_API_URL,
|
||||||
graphqlUrl: (core.getInput('github-graphql-url') || '').replace(/\/graphql$/, '') || GITHUB_GRAPHQL_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 () {
|
function getGitHubInstance () {
|
||||||
const { token, defaultBranch, apiUrl, graphqlUrl, repoUrl } = getGitHubInput()
|
const { token, defaultBranch, apiUrl, graphqlUrl, repoUrl, proxyServer } = getGitHubInput()
|
||||||
const [owner, repo] = repoUrl.split('/')
|
const [owner, repo] = repoUrl.split('/')
|
||||||
|
|
||||||
|
let proxy
|
||||||
|
if (proxyServer) {
|
||||||
|
const [host, port] = proxyServer.split(':')
|
||||||
|
proxy = { host, port }
|
||||||
|
}
|
||||||
const githubCreateOpts = {
|
const githubCreateOpts = {
|
||||||
|
proxy,
|
||||||
owner,
|
owner,
|
||||||
repo,
|
repo,
|
||||||
apiUrl,
|
apiUrl,
|
||||||
|
|||||||
12
index.js
12
index.js
@@ -19,7 +19,8 @@ function getGitHubInput () {
|
|||||||
repoUrl: core.getInput('repo-url') || process.env.GITHUB_REPOSITORY,
|
repoUrl: core.getInput('repo-url') || process.env.GITHUB_REPOSITORY,
|
||||||
apiUrl: core.getInput('github-api-url') || GITHUB_API_URL,
|
apiUrl: core.getInput('github-api-url') || GITHUB_API_URL,
|
||||||
graphqlUrl: (core.getInput('github-graphql-url') || '').replace(/\/graphql$/, '') || GITHUB_GRAPHQL_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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,9 +106,16 @@ const releasePlease = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getGitHubInstance () {
|
function getGitHubInstance () {
|
||||||
const { token, defaultBranch, apiUrl, graphqlUrl, repoUrl } = getGitHubInput()
|
const { token, defaultBranch, apiUrl, graphqlUrl, repoUrl, proxyServer } = getGitHubInput()
|
||||||
const [owner, repo] = repoUrl.split('/')
|
const [owner, repo] = repoUrl.split('/')
|
||||||
|
|
||||||
|
let proxy
|
||||||
|
if (proxyServer) {
|
||||||
|
const [host, port] = proxyServer.split(':')
|
||||||
|
proxy = { host, port }
|
||||||
|
}
|
||||||
const githubCreateOpts = {
|
const githubCreateOpts = {
|
||||||
|
proxy,
|
||||||
owner,
|
owner,
|
||||||
repo,
|
repo,
|
||||||
apiUrl,
|
apiUrl,
|
||||||
|
|||||||
Reference in New Issue
Block a user