1
0
mirror of https://github.com/joaquinjsb/gitea-release-please-action synced 2026-05-08 17:01:13 +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: ''
git-username:
description: 'the username to use when pushing to git'
required: false
default: ''
required: true
git-password:
description: 'the password to use when pushing to git'
required: false
default: ''
required: true
path:
description: "create a release from a path other than the repository's root"
required: false

View File

@@ -52,8 +52,8 @@ function parseInputs(): ActionInputs {
releaseType: getOptionalInput('release-type'),
path: getOptionalInput('path'),
repoUrl: core.getInput('repo-url') || process.env.GITHUB_REPOSITORY || '',
gitUsername: core.getInput('git-username'),
gitPassword: core.getInput('git-password'),
gitUsername: core.getInput('git-username', {required: true}),
gitPassword: core.getInput('git-password', {required: true}),
targetBranch: getOptionalInput('target-branch'),
configFile: core.getInput('config-file') || DEFAULT_CONFIG_FILE,
manifestFile: core.getInput('manifest-file') || DEFAULT_MANIFEST_FILE,