fix: bootstrap apps without version config
Test action / integration (push) Failing after 12s
Update major version tag / update-major-tag (push) Successful in 5s

This commit is contained in:
NikoKS committed 2026-08-26 23:34:46 +07:00
1 parent 0848079db3
commit 59e040994b
5 files changed
+63 -9

No files matched your search

+15 -6
View File
@@ -12,6 +12,18 @@ git config user.name Test
git config user.email test@example.com
mkdir erp_operations
cat > pyproject.toml <<'TOML'
[project]
name = "erp_operations"
dynamic = ["version"]
TOML
printf '%s\n' '__version__ = "0.0.1"' > erp_operations/__init__.py
git add .
git commit -qm initial
git remote add origin "${test_root}/remote.git"
git push -qu origin main
git switch -qc develop
cat >> pyproject.toml <<'TOML'
[tool.bumpversion]
current_version = "0.0.1"
commit = false
@@ -22,15 +34,12 @@ filename = "erp_operations/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'
TOML
printf '%s\n' '__version__ = "0.0.1"' > erp_operations/__init__.py
git add .
git commit -qm initial
git remote add origin "${test_root}/remote.git"
git push -qu origin main
git switch -qc develop
git add pyproject.toml
git commit -qm 'configure versioning'
git push -qu origin develop
export INPUT_CONFIG_FILE=pyproject.toml
export INPUT_VERSION_FILE=erp_operations/__init__.py
export INPUT_BASE_BRANCH=main
export INPUT_TARGET_BRANCH=develop
export INPUT_BUMP=patch