Merge pull request #2 from noah-software/dev_file_pattern
Removed file_pattern parameter
This commit is contained in:
@@ -10,7 +10,6 @@ A GitHub action for drawing a Django data model automatically.
|
|||||||
| -------------- | :------: | :---------------: | ---------------------------------------- |
|
| -------------- | :------: | :---------------: | ---------------------------------------- |
|
||||||
| commit_options | :x: | - | Custom git commit options |
|
| 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 |
|
||||||
| file_pattern | :x: | \* | Custom git add file pattern |
|
|
||||||
| 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 |
|
||||||
| project_path | :x: | ./ | The path to manage.py |
|
| project_path | :x: | ./ | The path to manage.py |
|
||||||
@@ -43,6 +42,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# This part is also where you can pass other options, for example:
|
# This part is also where you can pass other options, for example:
|
||||||
pip_path: testfolder/app/requirements.txt
|
pip_path: testfolder/app/requirements.txt
|
||||||
|
project_path: app/
|
||||||
|
output_path: docs/model.png
|
||||||
```
|
```
|
||||||
|
|
||||||
More documentation for writing a workflow can be found [here](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions).
|
More documentation for writing a workflow can be found [here](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions).
|
||||||
|
|||||||
@@ -11,10 +11,6 @@ inputs:
|
|||||||
description: Commit message of the changed data
|
description: Commit message of the changed data
|
||||||
required: false
|
required: false
|
||||||
default: "Added data schema"
|
default: "Added data schema"
|
||||||
file_pattern:
|
|
||||||
description: File pattern used for `git add` command
|
|
||||||
required: false
|
|
||||||
default: "*"
|
|
||||||
pip_path:
|
pip_path:
|
||||||
description: Path relative to the repository root, where the requirements.txt is located
|
description: Path relative to the repository root, where the requirements.txt is located
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ then
|
|||||||
_git_setup
|
_git_setup
|
||||||
echo "Commiting and pushing changes..."
|
echo "Commiting and pushing changes..."
|
||||||
# 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 *
|
||||||
# Commit and push changes back
|
# Commit and push changes back
|
||||||
git commit -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>" ${INPUT_COMMIT_OPTIONS:+"$INPUT_COMMIT_OPTIONS"}
|
git commit -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>" ${INPUT_COMMIT_OPTIONS:+"$INPUT_COMMIT_OPTIONS"}
|
||||||
git push origin
|
git push origin
|
||||||
|
|||||||
Reference in New Issue
Block a user