Merge pull request #36 from mokoconsulting-tech/copilot/fix-workflows

Fix YAML syntax error in release_pipeline workflow
This commit was merged in pull request #36.
This commit is contained in:
2026-01-08 15:53:04 -06:00
committed by GitHub

View File

@@ -104,16 +104,8 @@ jobs:
if [ "${REF_NAME}" = "main" ]; then if [ "${REF_NAME}" = "main" ]; then
# Infer version from manifest when on main branch # Infer version from manifest when on main branch
# Use Python library for cross-platform compatibility # Use Python library for cross-platform compatibility
VERSION=$(python3 -c " # Note: Single-line format required for YAML compatibility
import sys VERSION=$(python3 -c "import sys; sys.path.insert(0, '${GITHUB_WORKSPACE}/scripts/lib'); import extension_utils; ext_info = extension_utils.get_extension_info('${GITHUB_WORKSPACE}/src'); print(ext_info.version) if ext_info else sys.exit(1)")
sys.path.insert(0, '${GITHUB_WORKSPACE}/scripts/lib')
import extension_utils
ext_info = extension_utils.get_extension_info('${GITHUB_WORKSPACE}/src')
if ext_info:
print(ext_info.version)
else:
sys.exit(1)
")
if [ -z "${VERSION}" ]; then if [ -z "${VERSION}" ]; then
echo "ERROR: Failed to extract version from manifest" >> "${GITHUB_STEP_SUMMARY}" echo "ERROR: Failed to extract version from manifest" >> "${GITHUB_STEP_SUMMARY}"