mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-16 21:30:31 +02:00
Removed branching parameter for testing
This commit is contained in:
@@ -19,9 +19,6 @@ inputs:
|
|||||||
description: Options for the `prettier` command
|
description: Options for the `prettier` command
|
||||||
required: false
|
required: false
|
||||||
default: '--write **/*.js'
|
default: '--write **/*.js'
|
||||||
branch:
|
|
||||||
description: Target branch for the changes
|
|
||||||
required: true
|
|
||||||
dry:
|
dry:
|
||||||
description: Running the script in dry mode just shows whether there are files that should be prettified or not
|
description: Running the script in dry mode just shows whether there are files that should be prettified or not
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
@@ -57,8 +57,6 @@ then
|
|||||||
# Calling method to configure the git environemnt
|
# Calling method to configure the git environemnt
|
||||||
_git_setup
|
_git_setup
|
||||||
echo "Commiting and pushing changes..."
|
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
|
# Add changes to git
|
||||||
git add "${INPUT_FILE_PATTERN}" || echo "Problem adding your files with pattern ${INPUT_FILE_PATTERN}"
|
git add "${INPUT_FILE_PATTERN}" || echo "Problem adding your files with pattern ${INPUT_FILE_PATTERN}"
|
||||||
# Commit and push changes back
|
# Commit and push changes back
|
||||||
|
|||||||
Reference in New Issue
Block a user