Demo ci check (#12530)

* Remove branch checking in workflow files

* Detect demo branch based on software version

* Fix typo
This commit is contained in:
Oliver
2026-08-01 14:53:43 +10:00
committed by GitHub
parent 5216203e0d
commit 175bfda22f
3 changed files with 15 additions and 13 deletions
+2 -6
View File
@@ -33,10 +33,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
@@ -140,7 +136,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
@@ -222,7 +218,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