diff --git a/actions.yml b/actions.yml index 84af776..ca95851 100644 --- a/actions.yml +++ b/actions.yml @@ -14,6 +14,10 @@ inputs: description: 'Email address of the commit author' required: true + ref: + description: Branch to use + required: true + runs: using: 'docker' image: 'Dockerfile' diff --git a/entrypoint.sh b/entrypoint.sh index 323d820..e3813e0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -30,13 +30,13 @@ then echo "Push Branch Value: $PUSH_BRANCH"; # Switch to branch from current Workflow run - git checkout -b $PUSH_BRANCH + git checkout -b $INPUT_REF git add . git commit -m "$INPUT_COMMIT_MESSAGE" --author="$INPUT_COMMIT_AUTHOR_NAME <$INPUT_COMMIT_AUTHOR_EMAIL>" - git push --set-upstream origin $PUSH_BRANCH + git push --set-upstream origin $INPUT_REF else echo "Working tree clean. Nothing to commit." fi