mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-13 21:51:41 +02:00
feat: allow repo url to be set as argument to GitHub action (#380)
This commit is contained in:
@@ -62,6 +62,7 @@ Automate releases with Conventional Commit Messages.
|
|||||||
| `changelog-path` | configure alternate path for `CHANGELOG.md`. Default `CHANGELOG.md` |
|
| `changelog-path` | configure alternate path for `CHANGELOG.md`. Default `CHANGELOG.md` |
|
||||||
| `github-api-url` | configure github API URL. Default `https://api.github.com` |
|
| `github-api-url` | configure github API URL. Default `https://api.github.com` |
|
||||||
| `--signoff` | Add [`Signed-off-by`](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---signoff) line at the end of the commit log message using the user and email provided. (format "Name \<email@example.com\>") |
|
| `--signoff` | Add [`Signed-off-by`](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---signoff) line at the end of the commit log message using the user and email provided. (format "Name \<email@example.com\>") |
|
||||||
|
| `repo-url` | configure github repository URL. Default `process.env.GITHUB_REPOSITORY` |
|
||||||
|
|
||||||
| output | description |
|
| output | description |
|
||||||
|:---:|---|
|
|:---:|---|
|
||||||
|
|||||||
@@ -76,6 +76,10 @@ inputs:
|
|||||||
description: 'configure github API URL. Default `https://api.github.com`'
|
description: 'configure github API URL. Default `https://api.github.com`'
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
|
repo-url:
|
||||||
|
description: 'configure github repository URL. Default `process.env.GITHUB_REPOSITORY`'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: 'node12'
|
||||||
|
|||||||
4
index.js
4
index.js
@@ -24,7 +24,7 @@ function getGitHubInput () {
|
|||||||
return {
|
return {
|
||||||
fork: getBooleanInput('fork'),
|
fork: getBooleanInput('fork'),
|
||||||
defaultBranch: core.getInput('default-branch') || undefined,
|
defaultBranch: core.getInput('default-branch') || undefined,
|
||||||
repoUrl: process.env.GITHUB_REPOSITORY,
|
repoUrl: core.getInput('repo-url') || process.env.GITHUB_REPOSITORY,
|
||||||
apiUrl: core.getInput('github-api-url') || GITHUB_API_URL,
|
apiUrl: core.getInput('github-api-url') || GITHUB_API_URL,
|
||||||
token: core.getInput('token', { required: true })
|
token: core.getInput('token', { required: true })
|
||||||
}
|
}
|
||||||
@@ -100,7 +100,7 @@ async function main () {
|
|||||||
if (!command || command === GITHUB_RELEASE_COMMAND) {
|
if (!command || command === GITHUB_RELEASE_COMMAND) {
|
||||||
const releaseCreated = await factory.runCommand(GITHUB_RELEASE_COMMAND, {
|
const releaseCreated = await factory.runCommand(GITHUB_RELEASE_COMMAND, {
|
||||||
label: RELEASE_LABEL,
|
label: RELEASE_LABEL,
|
||||||
repoUrl: process.env.GITHUB_REPOSITORY,
|
repoUrl,
|
||||||
packageName,
|
packageName,
|
||||||
path,
|
path,
|
||||||
monorepoTags,
|
monorepoTags,
|
||||||
|
|||||||
Reference in New Issue
Block a user