Skip to content

Commit 180e07b

Browse files
committed
fix(ci): resolve YAML syntax issues in release workflows
- Fix multi-line Python code in version generation scripts - Add missing outputs section to nightly-release job - Consolidate Python version bump logic to single lines - Ensure proper job output references for notifications
1 parent b417bb6 commit 180e07b

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

.github/workflows/beta-release.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,7 @@ jobs:
105105
BETA_VERSION="${BASE_VERSION}b1"
106106
else
107107
# If stable, bump minor and add beta (4.1.1 -> 4.2.0)
108-
BASE_VERSION=$(python -c "
109-
import re
110-
version = '$CURRENT_VERSION'
111-
parts = version.split('.')
112-
parts[1] = str(int(parts[1]) + 1)
113-
parts[2] = '0'
114-
print('.'.join(parts))
115-
")
108+
BASE_VERSION=$(python -c "import re; version = '$CURRENT_VERSION'; parts = version.split('.'); parts[1] = str(int(parts[1]) + 1); parts[2] = '0'; print('.'.join(parts))")
116109
BETA_VERSION="${BASE_VERSION}b1"
117110
fi
118111

.github/workflows/nightly-release.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ jobs:
5959
needs: check-changes
6060
if: needs.check-changes.outputs.has_changes == 'true'
6161
runs-on: ubuntu-latest
62+
outputs:
63+
alpha_version: ${{ steps.version.outputs.alpha_version }}
6264
steps:
6365
- uses: actions/checkout@v4
6466
with:
@@ -99,14 +101,7 @@ jobs:
99101
BASE_VERSION=$(echo $CURRENT_VERSION | cut -d'a' -f1)
100102
else
101103
# Bump minor version for alpha (4.1.1 -> 4.2.0)
102-
BASE_VERSION=$(python -c "
103-
import re
104-
version = '$CURRENT_VERSION'
105-
parts = version.split('.')
106-
parts[1] = str(int(parts[1]) + 1)
107-
parts[2] = '0'
108-
print('.'.join(parts))
109-
")
104+
BASE_VERSION=$(python -c "import re; version = '$CURRENT_VERSION'; parts = version.split('.'); parts[1] = str(int(parts[1]) + 1); parts[2] = '0'; print('.'.join(parts))")
110105
fi
111106
112107
ALPHA_VERSION="${BASE_VERSION}a${DATE_STAMP}.${TIME_STAMP}.${COMMIT_SHORT}"

0 commit comments

Comments
 (0)