Add possibility to alter the target repository

This commit is contained in:
Alejandro Hernández 2020-02-06 19:22:07 +01:00
parent b7064071dc
commit f092a452c6
No known key found for this signature in database
GPG key ID: A678768B568EF2D9
6 changed files with 11 additions and 2 deletions

View file

@ -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;