fix: bootstrap apps without version config
This commit is contained in:
1 parent
0848079db3
commit
59e040994b
5 files changed
+63
-9
No files matched your search
+15
-6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user