No description
This repository has been archived on 2026-10-12. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Shell 81.2%
  • Dockerfile 18.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Conrad 6f22c61866
Merge pull request #8 from noah-software/dev
Added execution rights to entrypoint script
2023-01-02 17:21:43 +01:00
.gitignore Added initial action 2020-10-06 14:17:06 +02:00
action.yml Updated documentation + Adjusted default commit_message 2020-10-06 17:04:33 +02:00
Dockerfile Removed pydot dependencies 2022-07-11 13:29:46 +02:00
entrypoint.sh Added execution rights to entrypoint script 2023-01-02 17:12:27 +01:00
LICENSE Updated docs 2022-07-11 13:14:48 +02:00
README.md Merge branch 'main' into dev 2022-09-21 14:57:29 +02:00

Django Action

A GitHub action for drawing a Django data model automatically.

Usage

Parameters

Parameter Required Default Description
commit_message ❌ Updated data schema Custom git commit message
output_path ❌ . Output path for generated files (see 'Example Config' for example)
pip_path ❌ requirements.txt Requirements path for the Django project
project_path ❌ ./ The path to manage.py (see 'Example Config' for example)

Note: The output_path has to exist already.

Example Config

name: Continuous Integration

# This action works with pull requests and pushes
on:
  pull_request:
  push:
    branches:
      - master

jobs:
  graph-models:
    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.1
        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.

Issues

Please report all bugs and feature request using the GitHub issues function. Thanks!