Add readme and commit options
This commit is contained in:
52
README.md
52
README.md
@@ -1 +1,51 @@
|
|||||||
# django_action
|
# Django Action
|
||||||
|
|
||||||
|
A GitHub action for drawing a Django data model automatically.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
| Parameter | Required | Default | Description |
|
||||||
|
| -------------- | :------: | :---------------: | ---------------------------------------- |
|
||||||
|
| 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 |
|
||||||
|
|
||||||
|
### Example Config
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
name: Continuous Integration
|
||||||
|
|
||||||
|
# This action works with pull requests and pushes
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
prettier:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
# Make sure the actual branch is checked out when running on pull requests
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
|
- name: Generate Data Schema
|
||||||
|
uses: noah-software/django_action@v1.0
|
||||||
|
with:
|
||||||
|
# This part is also where you can pass other options, for example:
|
||||||
|
pip_path: testfolder/app/requirements.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
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).
|
||||||
|
|
||||||
|
## Issues
|
||||||
|
|
||||||
|
Please report all bugs and feature request using the [GitHub issues function](https://github.com/noah-software/django_action/issues/new). Thanks!
|
||||||
|
|||||||
@@ -7,7 +7,10 @@ inputs:
|
|||||||
output_path:
|
output_path:
|
||||||
description: Output path for the generated data scheme
|
description: Output path for the generated data scheme
|
||||||
required: false
|
required: false
|
||||||
default: "./"
|
default: "."
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user