mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
Add possibility to alter the target repository
This commit is contained in:
parent
b7064071dc
commit
f092a452c6
6 changed files with 11 additions and 2 deletions
2
index.js
2
index.js
|
@ -25,6 +25,7 @@ async function run() {
|
|||
const inputs = {
|
||||
token: core.getInput("token"),
|
||||
path: core.getInput("path"),
|
||||
repository: core.getInput("repository"),
|
||||
commitMessage: core.getInput("commit-message"),
|
||||
committer: core.getInput("committer"),
|
||||
author: core.getInput("author"),
|
||||
|
@ -45,6 +46,7 @@ async function run() {
|
|||
|
||||
// Set environment variables from inputs.
|
||||
if (inputs.token) process.env.GITHUB_TOKEN = inputs.token;
|
||||
if (inputs.repository) process.env.CPR_REPOSITORY = inputs.repository;
|
||||
if (inputs.path) process.env.CPR_PATH = inputs.path;
|
||||
if (inputs.commitMessage) process.env.CPR_COMMIT_MESSAGE = inputs.commitMessage;
|
||||
if (inputs.committer) process.env.CPR_COMMITTER = inputs.committer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue