mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-13 15:51:41 +02:00
fix: added git ssh configuration for repo.
This commit is contained in:
@@ -10,6 +10,14 @@ inputs:
|
|||||||
description: 'what type of release is this, one of (ruby, python, node, terraform-module)'
|
description: 'what type of release is this, one of (ruby, python, node, terraform-module)'
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
|
git-username:
|
||||||
|
description: 'the username to use when pushing to git'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
git-password:
|
||||||
|
description: 'the password to use when pushing to git'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
path:
|
path:
|
||||||
description: "create a release from a path other than the repository's root"
|
description: "create a release from a path other than the repository's root"
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ interface ActionInputs {
|
|||||||
path?: string;
|
path?: string;
|
||||||
githubApiUrl: string;
|
githubApiUrl: string;
|
||||||
githubGraphqlUrl: string;
|
githubGraphqlUrl: string;
|
||||||
|
gitUsername?: string;
|
||||||
|
gitPassword?: string;
|
||||||
configFile?: string;
|
configFile?: string;
|
||||||
manifestFile?: string;
|
manifestFile?: string;
|
||||||
proxyServer?: string;
|
proxyServer?: string;
|
||||||
@@ -50,6 +52,8 @@ function parseInputs(): ActionInputs {
|
|||||||
releaseType: getOptionalInput('release-type'),
|
releaseType: getOptionalInput('release-type'),
|
||||||
path: getOptionalInput('path'),
|
path: getOptionalInput('path'),
|
||||||
repoUrl: core.getInput('repo-url') || process.env.GITHUB_REPOSITORY || '',
|
repoUrl: core.getInput('repo-url') || process.env.GITHUB_REPOSITORY || '',
|
||||||
|
gitUsername: core.getInput('git-username'),
|
||||||
|
gitPassword: core.getInput('git-password'),
|
||||||
targetBranch: getOptionalInput('target-branch'),
|
targetBranch: getOptionalInput('target-branch'),
|
||||||
configFile: core.getInput('config-file') || DEFAULT_CONFIG_FILE,
|
configFile: core.getInput('config-file') || DEFAULT_CONFIG_FILE,
|
||||||
manifestFile: core.getInput('manifest-file') || DEFAULT_MANIFEST_FILE,
|
manifestFile: core.getInput('manifest-file') || DEFAULT_MANIFEST_FILE,
|
||||||
@@ -149,6 +153,8 @@ function getGitHubInstance(inputs: ActionInputs): Promise<GitHub> {
|
|||||||
repo,
|
repo,
|
||||||
apiUrl: inputs.githubApiUrl,
|
apiUrl: inputs.githubApiUrl,
|
||||||
graphqlUrl: inputs.githubGraphqlUrl,
|
graphqlUrl: inputs.githubGraphqlUrl,
|
||||||
|
gitUsername: inputs.gitUsername,
|
||||||
|
gitPassword: inputs.gitPassword,
|
||||||
token: inputs.token,
|
token: inputs.token,
|
||||||
defaultBranch: inputs.targetBranch,
|
defaultBranch: inputs.targetBranch,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user