Merge pull request #2 from noah-software/dev_file_pattern

Removed file_pattern parameter
This commit is contained in:
2020-10-06 16:44:39 +02:00
committed by GitHub
3 changed files with 3 additions and 6 deletions

View File

@@ -10,7 +10,6 @@ A GitHub action for drawing a Django data model automatically.
| -------------- | :------: | :---------------: | ---------------------------------------- |
| commit_options | :x: | - | Custom git commit options |
| 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 |
| pip_path | :x: | requirements.txt | Requirements path for the Django project |
| project_path | :x: | ./ | The path to manage.py |
@@ -43,6 +42,8 @@ jobs:
with:
# This part is also where you can pass other options, for example:
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).

View File

@@ -11,10 +11,6 @@ inputs:
description: Commit message of the changed data
required: false
default: "Added data schema"
file_pattern:
description: File pattern used for `git add` command
required: false
default: "*"
pip_path:
description: Path relative to the repository root, where the requirements.txt is located
required: false

View File

@@ -39,7 +39,7 @@ then
_git_setup
echo "Commiting and pushing changes..."
# 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
git commit -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>" ${INPUT_COMMIT_OPTIONS:+"$INPUT_COMMIT_OPTIONS"}
git push origin