Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
feat: add a changelog-host parameter to action.yml (#550)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Signed-off-by: Jeffrey Rennie <[email protected]>

Signed-off-by: Jeffrey Rennie <[email protected]>
Co-authored-by: Jeff Ching <[email protected]>
  • Loading branch information
SurferJeffAtGoogle and chingor13 authored Aug 10, 2022
1 parent f2231b7 commit 1a4217f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -129,6 +130,7 @@ async function manifestInstance (github) {
packageName,
releaseType,
changelogPath,
changelogHost,
changelogSections,
versionFile,
extraFiles,
Expand Down

0 comments on commit 1a4217f

Please sign in to comment.