From 8d0861a178d838f93c7f487f3ae0cb7038b2310d Mon Sep 17 00:00:00 2001 From: Conrad Date: Mon, 27 Apr 2020 17:25:13 +0200 Subject: [PATCH] Removed branching parameter for testing --- action.yml | 3 --- entrypoint.sh | 2 -- 2 files changed, 5 deletions(-) diff --git a/action.yml b/action.yml index 4fca01f..de6218f 100644 --- a/action.yml +++ b/action.yml @@ -19,9 +19,6 @@ inputs: description: Options for the `prettier` command required: false default: '--write **/*.js' - branch: - description: Target branch for the changes - required: true dry: description: Running the script in dry mode just shows whether there are files that should be prettified or not required: false diff --git a/entrypoint.sh b/entrypoint.sh index b39676d..e23bd89 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -57,8 +57,6 @@ then # Calling method to configure the git environemnt _git_setup echo "Commiting and pushing changes..." - # Switch to the actual branch - git checkout $INPUT_BRANCH || echo "Problem checking out the specified branch: $INPUT_BRANCH" # Add changes to git git add "${INPUT_FILE_PATTERN}" || echo "Problem adding your files with pattern ${INPUT_FILE_PATTERN}" # Commit and push changes back