Demo data branch backport (#12521)

* Auto-detect demo dataset branch in CI

* Fix github actions

* Fix typo
This commit is contained in:
Oliver
2026-07-31 15:57:53 +10:00
committed by GitHub
parent 74ee9c5029
commit 70dee5c145
3 changed files with 32 additions and 25 deletions
+2 -6
View File
@@ -32,10 +32,6 @@ env:
INVENTREE_BACKUP_DIR: /home/runner/work/InvenTree/test_inventree_backup
INVENTREE_SITE_URL: http://localhost:8000
# Use the same-named branch of the demo dataset as the target branch of this build,
# so that stable branches are not broken by changes to the demo dataset on main
DEMO_DATASET_BRANCH: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }}
permissions:
contents: read
@@ -139,7 +135,7 @@ jobs:
pip-dependency: psycopg2
- name: Set up test data
run: |
invoke dev.setup-test -iv --branch "$DEMO_DATASET_BRANCH"
invoke dev.setup-test -iv
invoke int.rebuild-thumbnails
- name: Install dependencies
run: invoke int.frontend-compile --extract
@@ -221,7 +217,7 @@ jobs:
pip-dependency: psycopg2
- name: Set up test data
run: |
invoke dev.setup-test -iv --branch "$DEMO_DATASET_BRANCH"
invoke dev.setup-test -iv
invoke int.rebuild-thumbnails
- name: Install dependencies
run: invoke int.frontend-compile --extract