1
0
mirror of https://github.com/joaquinjsb/gitea-release-please-action synced 2026-05-13 01:01:37 +02:00

fix: require git username and password.

This commit is contained in:
Joaquin
2024-11-19 15:35:34 +01:00
parent 5a1e306cf2
commit febaa9c657
2 changed files with 4 additions and 6 deletions

View File

@@ -12,12 +12,10 @@ inputs:
default: '' default: ''
git-username: git-username:
description: 'the username to use when pushing to git' description: 'the username to use when pushing to git'
required: false required: true
default: ''
git-password: git-password:
description: 'the password to use when pushing to git' description: 'the password to use when pushing to git'
required: false required: true
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

View File

@@ -52,8 +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'), gitUsername: core.getInput('git-username', {required: true}),
gitPassword: core.getInput('git-password'), gitPassword: core.getInput('git-password', {required: true}),
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,