You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Extract the base release version (without -rc.N suffix)
49
-
RELEASE_VERSION=$(echo "$VERSION" | sed 's/-rc\.[0-9]*$//')
50
-
51
-
# Extract changelog using make target (tries version-specific, then unreleased)
52
-
CHANGELOG_CONTENT=$(make extract-changelog-version VERSION="$RELEASE_VERSION" 2>/dev/null || echo "Pre-release build for ${RELEASE_VERSION}. See CHANGELOG.md for details.")
53
-
54
-
# Save to environment variable, handling multiline content
55
-
{
56
-
echo 'CHANGELOG_BODY<<EOF'
57
-
echo "$CHANGELOG_CONTENT"
58
-
echo 'EOF'
59
-
} >> "$GITHUB_ENV"
60
-
61
-
- name: Create or update pre-release
62
-
run: |
63
-
VERSION="${{ env.PRERELEASE_VERSION }}"
64
-
65
-
# Check if release already exists
66
-
if gh release view "$VERSION" >/dev/null 2>&1; then
67
-
echo "Pre-release $VERSION already exists, checking if changelog needs to be updated..."
68
-
69
-
# Get current release notes
70
-
CURRENT_NOTES=$(gh release view "$VERSION" --json body -q .body)
71
-
72
-
# Check if changelog content is already in the notes
73
-
if echo "$CURRENT_NOTES" | grep -qF "${{ env.CHANGELOG_BODY }}"; then
74
-
echo "Changelog already present in release notes, skipping update..."
75
-
else
76
-
echo "Appending changelog to existing release notes..."
0 commit comments