fix: fix: disinto release fails to load FORGE_OPS_REPO from project config (#180)
This commit is contained in:
parent
89ab24fc03
commit
fcb4b1ec40
1 changed files with 12 additions and 3 deletions
15
bin/disinto
15
bin/disinto
|
|
@ -2892,9 +2892,18 @@ disinto_release() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Load project config to get FORGE_OPS_REPO
|
# Load project config to get FORGE_OPS_REPO
|
||||||
local project_toml="${FACTORY_ROOT}/projects/${PROJECT_NAME}.toml"
|
if [ -z "${PROJECT_NAME:-}" ]; then
|
||||||
if [ -n "${PROJECT_NAME:-}" ] && [ -f "$project_toml" ]; then
|
# PROJECT_NAME is unset - detect project TOML from projects/ directory
|
||||||
source "${FACTORY_ROOT}/lib/load-project.sh" "$project_toml"
|
local found_toml
|
||||||
|
found_toml=$(find "${FACTORY_ROOT}/projects" -maxdepth 1 -name "*.toml" ! -name "*.example" 2>/dev/null | head -1)
|
||||||
|
if [ -n "$found_toml" ]; then
|
||||||
|
source "${FACTORY_ROOT}/lib/load-project.sh" "$found_toml"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
local project_toml="${FACTORY_ROOT}/projects/${PROJECT_NAME}.toml"
|
||||||
|
if [ -f "$project_toml" ]; then
|
||||||
|
source "${FACTORY_ROOT}/lib/load-project.sh" "$project_toml"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check formula exists
|
# Check formula exists
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue