Fix YAML syntax error in release_pipeline workflow #36
12
.github/workflows/release_pipeline.yml
vendored
12
.github/workflows/release_pipeline.yml
vendored
@@ -104,16 +104,8 @@ jobs:
|
||||
if [ "${REF_NAME}" = "main" ]; then
|
||||
# Infer version from manifest when on main branch
|
||||
# Use Python library for cross-platform compatibility
|
||||
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')
|
||||
if ext_info:
|
||||
print(ext_info.version)
|
||||
else:
|
||||
sys.exit(1)
|
||||
")
|
||||
# Note: Single-line format required for YAML compatibility
|
||||
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)")
|
||||
|
||||
if [ -z "${VERSION}" ]; then
|
||||
echo "ERROR: Failed to extract version from manifest" >> "${GITHUB_STEP_SUMMARY}"
|
||||
|
||||
Reference in New Issue
Block a user