mirror of
https://github.com/inventree/demo-dataset.git
synced 2025-04-28 05:26:49 +00:00
Import data
This commit is contained in:
parent
2aa6062e0d
commit
9f2eba2611
3
.github/workflows/import_data.yaml
vendored
3
.github/workflows/import_data.yaml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
INVENTREE_DB_ENGINE: sqlite3
|
INVENTREE_DB_ENGINE: sqlite3
|
||||||
INVENTREE_DB_NAME: inventree_db.sqlite3
|
INVENTREE_DB_NAME: inventree_db.sqlite3
|
||||||
INVENTREE_MEDIA_ROOT: /path/to/media
|
INVENTREE_MEDIA_ROOT: ${{ GITHUB_WORKSPACE }}/path/to/media
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
@ -31,4 +31,5 @@ jobs:
|
|||||||
git clone --depth 1 https://github.com/inventree/inventree inventree
|
git clone --depth 1 https://github.com/inventree/inventree inventree
|
||||||
cd inventree
|
cd inventree
|
||||||
invoke install
|
invoke install
|
||||||
|
invoke import-records ${{ GITHUB_WORKSPACE }}/inventree_data.json
|
||||||
|
|
||||||
|
3
inventree_data.json
Normal file
3
inventree_data.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user