1
0
mirror of https://github.com/joaquinjsb/gitea-release-please-action synced 2026-05-09 18:11:15 +02:00

feat: add a changelog-host parameter to action.yml (#550)

* Add a changelog-host parameter to action.yml.

Fixes https://github.com/google-github-actions/release-please-action/issues/525

* fix default changelog-host

Co-authored-by: Jeff Ching <chingor@google.com>
Signed-off-by: Jeffrey Rennie <rennie@google.com>

Signed-off-by: Jeffrey Rennie <rennie@google.com>
Co-authored-by: Jeff Ching <chingor@google.com>
This commit is contained in:
Jeffrey Rennie
2022-08-10 09:32:13 -07:00
committed by GitHub
parent f2231b744d
commit 1a4217fc5a
2 changed files with 6 additions and 0 deletions

View File

@@ -36,6 +36,10 @@ inputs:
description: 'specify a CHANGELOG path other than the root CHANGELOG.md'
required: false
default: ''
changelog-host:
description: 'The proto://host where commits live.'
required: false
default: 'https://github.com'
command:
description: 'release-please command to run, either "github-release", or "release-pr" (defaults to running both)'
required: false

View File

@@ -113,6 +113,7 @@ async function manifestInstance (github) {
const path = core.getInput('path') || undefined
const releaseType = core.getInput('release-type', { required: true })
const changelogPath = core.getInput('changelog-path') || undefined
const changelogHost = core.getInput('changelog-host') || undefined
const changelogTypes = core.getInput('changelog-types') || undefined
const changelogSections = changelogTypes && JSON.parse(changelogTypes)
const versionFile = core.getInput('version-file') || undefined
@@ -129,6 +130,7 @@ async function manifestInstance (github) {
packageName,
releaseType,
changelogPath,
changelogHost,
changelogSections,
versionFile,
extraFiles,