diff --git a/action.yml b/action.yml index aad0d1b..f437b00 100644 --- a/action.yml +++ b/action.yml @@ -15,6 +15,10 @@ inputs: description: Branch name to sync to in this repo, default is master required: false default: master + repository: + description: Set custom repository + required: false + default: ${{ github.repository }} pr_title: description: Pull request title required: false @@ -42,6 +46,9 @@ inputs: pr_allow_empty: description: Create PR even if no changes required: false + working_directory: + description: Change working directory + required: false github_token: description: GitHub token secret required: true diff --git a/entrypoint.sh b/entrypoint.sh index d198fca..0a99e9e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -51,6 +51,11 @@ if [[ -z "$GITHUB_TOKEN" ]]; then fi fi +if [[ -n "$INPUT_WORKING_DIRECTORY" ]]; then + echo "Changing working directory to ${INPUT_WORKING_DIRECTORY} " + cd "$INPUT_WORKING_DIRECTORY" +fi + # enable debug after token handling enable_debug