Merge pull request #3 from noah-software/dev_commit_options
Removed commit_options parameter
This commit is contained in:
@@ -8,7 +8,6 @@ A GitHub action for drawing a Django data model automatically.
|
|||||||
|
|
||||||
| Parameter | Required | Default | Description |
|
| Parameter | Required | Default | Description |
|
||||||
| -------------- | :------: | :---------------: | ---------------------------------------- |
|
| -------------- | :------: | :---------------: | ---------------------------------------- |
|
||||||
| commit_options | :x: | - | Custom git commit options |
|
|
||||||
| commit_message | :x: | Added data schema | Custom git commit message |
|
| commit_message | :x: | Added data schema | Custom git commit message |
|
||||||
| output_path | :x: | . | Output path for generated files |
|
| output_path | :x: | . | Output path for generated files |
|
||||||
| pip_path | :x: | requirements.txt | Requirements path for the Django project |
|
| pip_path | :x: | requirements.txt | Requirements path for the Django project |
|
||||||
|
|||||||
@@ -4,9 +4,6 @@ description: Automatically runs some django tasks.
|
|||||||
author: Conrad Großer <conrad@noah.tech>
|
author: Conrad Großer <conrad@noah.tech>
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
commit_options:
|
|
||||||
description: Commit options for the changed data
|
|
||||||
required: false
|
|
||||||
commit_message:
|
commit_message:
|
||||||
description: Commit message of the changed data
|
description: Commit message of the changed data
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
@@ -37,9 +37,8 @@ if _git_changed;
|
|||||||
then
|
then
|
||||||
# Calling method to configure the git environemnt
|
# Calling method to configure the git environemnt
|
||||||
_git_setup
|
_git_setup
|
||||||
echo "Commiting and pushing changes..."
|
|
||||||
# Commit and push changes back
|
# Commit and push changes back
|
||||||
git commit -a -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>" ${INPUT_COMMIT_OPTIONS:+"$INPUT_COMMIT_OPTIONS"}
|
git commit -a -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>"
|
||||||
git push origin
|
git push origin
|
||||||
echo "Changes pushed successfully."
|
echo "Changes pushed successfully."
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user