Skip to content

Commit f7aa60b

Browse files
committed
comment out changelog update
1 parent 692555c commit f7aa60b

File tree

1 file changed

+153
-152
lines changed

1 file changed

+153
-152
lines changed

.github/workflows/ci.yml

Lines changed: 153 additions & 152 deletions
Original file line numberDiff line numberDiff line change
@@ -274,163 +274,164 @@ jobs:
274274
sed -i 's/^version = ".*"/version = "${{ env.VERSION_NAME }}"/' crates/sdk/Cargo.toml
275275
sed -i 's/^version = ".*"/version = "${{ env.VERSION_NAME }}"/' Cargo.toml
276276
277-
- name: Update Changelog
278-
shell: bash
279-
run: |
280-
CHANGELOG_FILE="documentation/rrelayer/docs/pages/changelog.mdx"
281-
DAY=$(date '+%d' | sed 's/^0*//')
282-
MONTH=$(date '+%B')
283-
YEAR=$(date '+%Y')
284-
285-
# Add ordinal suffix
286-
case $DAY in
287-
1|21|31) SUFFIX="st";;
288-
2|22) SUFFIX="nd";;
289-
3|23) SUFFIX="rd";;
290-
*) SUFFIX="th";;
291-
esac
292-
293-
DATE="$DAY$SUFFIX $MONTH $YEAR"
294-
295-
echo "Updating changelog for version ${{ env.VERSION_NAME }}"
296-
297-
# Create changelog if it doesn't exist
298-
if [[ ! -f "$CHANGELOG_FILE" ]]; then
299-
cat > "$CHANGELOG_FILE" << EOF
300-
# Changelog
301-
302-
## Changes Not Deployed
303-
-------------------------------------------------
304-
305-
### Features
306-
-------------------------------------------------
307-
308-
### Bug fixes
309-
-------------------------------------------------
310-
311-
### Breaking changes
312-
-------------------------------------------------
313-
314-
## Releases
315-
-------------------------------------------------
316-
317-
all release branches are deployed through \`release/VERSION_NUMBER\` branches
318-
319-
EOF
320-
fi
321-
322-
# Create a temporary file to work with
323-
cp "$CHANGELOG_FILE" changelog_temp.md
324-
325-
# Extract just the bug fixes line directly from Changes Not Deployed section
326-
BUG_FIXES=$(sed -n '/^## Changes Not Deployed/,/^## Releases/p' changelog_temp.md | grep "^- fix:" | head -5)
327-
328-
# Use the simple extraction for now
329-
FEATURES=""
330-
BUG_FIXES="$BUG_FIXES"
331-
BREAKING_CHANGES=""
332-
333-
# Save the extracted content for PR creation
334-
{
335-
echo "### Changes in this release:"
336-
echo "-------------------------------------------------"
337-
echo "### Features"
338-
echo "-------------------------------------------------"
339-
if [[ -n "$FEATURES" ]]; then
340-
echo "$FEATURES"
341-
fi
342-
echo ""
343-
echo "### Bug fixes"
344-
echo "-------------------------------------------------"
345-
if [[ -n "$BUG_FIXES" ]]; then
346-
echo "$BUG_FIXES"
347-
fi
348-
echo ""
349-
echo "### Breaking changes"
350-
echo "-------------------------------------------------"
351-
if [[ -n "$BREAKING_CHANGES" ]]; then
352-
echo "$BREAKING_CHANGES"
353-
fi
354-
} > pr_body_content.txt
355-
356-
# Save to environment variable
357-
echo "PR_BODY_CONTENT<<EOF" >> $GITHUB_ENV
358-
cat pr_body_content.txt >> $GITHUB_ENV
359-
echo "EOF" >> $GITHUB_ENV
360-
361-
# Create new release entry
362-
cat > new_release.txt << EOF
363-
# ${{ env.VERSION_NAME }}-beta - $DATE
364-
365-
github branch - https://github.com/joshstevens19/rrelayer/tree/release/${{ env.VERSION_NAME }}
366-
367-
- linux binary - https://github.com/joshstevens19/rrelayer/releases/download/v${{ env.VERSION_NAME }}/rrelayer_linux-amd64.tar.gz
368-
- mac apple silicon binary - https://github.com/joshstevens19/rrelayer/releases/download/v${{ env.VERSION_NAME }}/rrelayer_darwin-arm64.tar.gz
369-
- mac apple intel binary - https://github.com/joshstevens19/rrelayer/releases/download/v${{ env.VERSION_NAME }}/rrelayer_darwin-amd64.tar.gz
370-
- windows binary - https://github.com/joshstevens19/rrelayer/releases/download/v${{ env.VERSION_NAME }}/rrelayer_win32-amd64.zip
371-
EOF
372-
373-
# Add sections if they have content
374-
if [[ -n "$FEATURES" && "$FEATURES" =~ [^[:space:]] ]]; then
375-
echo "" >> new_release.txt
376-
echo "### Features" >> new_release.txt
377-
echo "-------------------------------------------------" >> new_release.txt
378-
echo "$FEATURES" >> new_release.txt
379-
fi
380-
381-
if [[ -n "$BUG_FIXES" && "$BUG_FIXES" =~ [^[:space:]] ]]; then
382-
echo "" >> new_release.txt
383-
echo "### Bug fixes" >> new_release.txt
384-
echo "-------------------------------------------------" >> new_release.txt
385-
echo "$BUG_FIXES" >> new_release.txt
386-
fi
387-
388-
if [[ -n "$BREAKING_CHANGES" && "$BREAKING_CHANGES" =~ [^[:space:]] ]]; then
389-
echo "" >> new_release.txt
390-
echo "### Breaking changes" >> new_release.txt
391-
echo "-------------------------------------------------" >> new_release.txt
392-
echo "$BREAKING_CHANGES" >> new_release.txt
393-
fi
394-
395-
# Get existing releases (everything after "## Releases")
396-
EXISTING_RELEASES=$(awk '/^## Releases/,0' changelog_temp.md | tail -n +5)
397-
398-
# Create new changelog
399-
cat > "$CHANGELOG_FILE" << EOF
400-
# Changelog
401-
402-
## Changes Not Deployed
403-
-------------------------------------------------
404-
405-
### Features
406-
-------------------------------------------------
407-
408-
### Bug fixes
409-
-------------------------------------------------
410-
411-
### Breaking changes
412-
-------------------------------------------------
413-
414-
## Releases
415-
-------------------------------------------------
416-
417-
all release branches are deployed through \`release/VERSION_NUMBER\` branches
418-
419-
$(cat new_release.txt)
420-
421-
$EXISTING_RELEASES
422-
EOF
423-
424-
# Clean up temporary files
425-
rm -f changelog_temp.md new_release.txt pr_body_content.txt
426-
427-
echo "Changelog updated successfully"
277+
# Temporarily commented out changelog update for release process
278+
# - name: Update Changelog
279+
# shell: bash
280+
# run: |
281+
# CHANGELOG_FILE="documentation/rrelayer/docs/pages/changelog.mdx"
282+
# DAY=$(date '+%d' | sed 's/^0*//')
283+
# MONTH=$(date '+%B')
284+
# YEAR=$(date '+%Y')
285+
#
286+
# # Add ordinal suffix
287+
# case $DAY in
288+
# 1|21|31) SUFFIX="st";;
289+
# 2|22) SUFFIX="nd";;
290+
# 3|23) SUFFIX="rd";;
291+
# *) SUFFIX="th";;
292+
# esac
293+
#
294+
# DATE="$DAY$SUFFIX $MONTH $YEAR"
295+
#
296+
# echo "Updating changelog for version ${{ env.VERSION_NAME }}"
297+
#
298+
# # Create changelog if it doesn't exist
299+
# if [[ ! -f "$CHANGELOG_FILE" ]]; then
300+
# cat > "$CHANGELOG_FILE" << EOF
301+
# # Changelog
302+
#
303+
# ## Changes Not Deployed
304+
# -------------------------------------------------
305+
#
306+
# ### Features
307+
# -------------------------------------------------
308+
#
309+
# ### Bug fixes
310+
# -------------------------------------------------
311+
#
312+
# ### Breaking changes
313+
# -------------------------------------------------
314+
#
315+
# ## Releases
316+
# -------------------------------------------------
317+
#
318+
# all release branches are deployed through \`release/VERSION_NUMBER\` branches
319+
#
320+
# EOF
321+
# fi
322+
#
323+
# # Create a temporary file to work with
324+
# cp "$CHANGELOG_FILE" changelog_temp.md
325+
#
326+
# # Extract just the bug fixes line directly from Changes Not Deployed section
327+
# BUG_FIXES=$(sed -n '/^## Changes Not Deployed/,/^## Releases/p' changelog_temp.md | grep "^- fix:" | head -5)
328+
#
329+
# # Use the simple extraction for now
330+
# FEATURES=""
331+
# BUG_FIXES="$BUG_FIXES"
332+
# BREAKING_CHANGES=""
333+
#
334+
# # Save the extracted content for PR creation
335+
# {
336+
# echo "### Changes in this release:"
337+
# echo "-------------------------------------------------"
338+
# echo "### Features"
339+
# echo "-------------------------------------------------"
340+
# if [[ -n "$FEATURES" ]]; then
341+
# echo "$FEATURES"
342+
# fi
343+
# echo ""
344+
# echo "### Bug fixes"
345+
# echo "-------------------------------------------------"
346+
# if [[ -n "$BUG_FIXES" ]]; then
347+
# echo "$BUG_FIXES"
348+
# fi
349+
# echo ""
350+
# echo "### Breaking changes"
351+
# echo "-------------------------------------------------"
352+
# if [[ -n "$BREAKING_CHANGES" ]]; then
353+
# echo "$BREAKING_CHANGES"
354+
# fi
355+
# } > pr_body_content.txt
356+
#
357+
# # Save to environment variable
358+
# echo "PR_BODY_CONTENT<<EOF" >> $GITHUB_ENV
359+
# cat pr_body_content.txt >> $GITHUB_ENV
360+
# echo "EOF" >> $GITHUB_ENV
361+
#
362+
# # Create new release entry
363+
# cat > new_release.txt << EOF
364+
# # ${{ env.VERSION_NAME }}-beta - $DATE
365+
#
366+
# github branch - https://github.com/joshstevens19/rrelayer/tree/release/${{ env.VERSION_NAME }}
367+
#
368+
# - linux binary - https://github.com/joshstevens19/rrelayer/releases/download/v${{ env.VERSION_NAME }}/rrelayer_linux-amd64.tar.gz
369+
# - mac apple silicon binary - https://github.com/joshstevens19/rrelayer/releases/download/v${{ env.VERSION_NAME }}/rrelayer_darwin-arm64.tar.gz
370+
# - mac apple intel binary - https://github.com/joshstevens19/rrelayer/releases/download/v${{ env.VERSION_NAME }}/rrelayer_darwin-amd64.tar.gz
371+
# - windows binary - https://github.com/joshstevens19/rrelayer/releases/download/v${{ env.VERSION_NAME }}/rrelayer_win32-amd64.zip
372+
# EOF
373+
#
374+
# # Add sections if they have content
375+
# if [[ -n "$FEATURES" && "$FEATURES" =~ [^[:space:]] ]]; then
376+
# echo "" >> new_release.txt
377+
# echo "### Features" >> new_release.txt
378+
# echo "-------------------------------------------------" >> new_release.txt
379+
# echo "$FEATURES" >> new_release.txt
380+
# fi
381+
#
382+
# if [[ -n "$BUG_FIXES" && "$BUG_FIXES" =~ [^[:space:]] ]]; then
383+
# echo "" >> new_release.txt
384+
# echo "### Bug fixes" >> new_release.txt
385+
# echo "-------------------------------------------------" >> new_release.txt
386+
# echo "$BUG_FIXES" >> new_release.txt
387+
# fi
388+
#
389+
# if [[ -n "$BREAKING_CHANGES" && "$BREAKING_CHANGES" =~ [^[:space:]] ]]; then
390+
# echo "" >> new_release.txt
391+
# echo "### Breaking changes" >> new_release.txt
392+
# echo "-------------------------------------------------" >> new_release.txt
393+
# echo "$BREAKING_CHANGES" >> new_release.txt
394+
# fi
395+
#
396+
# # Get existing releases (everything after "## Releases")
397+
# EXISTING_RELEASES=$(awk '/^## Releases/,0' changelog_temp.md | tail -n +5)
398+
#
399+
# # Create new changelog
400+
# cat > "$CHANGELOG_FILE" << EOF
401+
# # Changelog
402+
#
403+
# ## Changes Not Deployed
404+
# -------------------------------------------------
405+
#
406+
# ### Features
407+
# -------------------------------------------------
408+
#
409+
# ### Bug fixes
410+
# -------------------------------------------------
411+
#
412+
# ### Breaking changes
413+
# -------------------------------------------------
414+
#
415+
# ## Releases
416+
# -------------------------------------------------
417+
#
418+
# all release branches are deployed through \`release/VERSION_NUMBER\` branches
419+
#
420+
# $(cat new_release.txt)
421+
#
422+
# $EXISTING_RELEASES
423+
# EOF
424+
#
425+
# # Clean up temporary files
426+
# rm -f changelog_temp.md new_release.txt pr_body_content.txt
427+
#
428+
# echo "Changelog updated successfully"
428429

429430
- name: Commit changes
430431
run: |
431432
git config --local user.email "[email protected]"
432433
git config --local user.name "GitHub Action"
433-
git add crates/cli/Cargo.toml crates/core/Cargo.toml crates/sdk/Cargo.toml Cargo.toml documentation/rrelayer/docs/pages/changelog.mdx
434+
git add crates/cli/Cargo.toml crates/core/Cargo.toml crates/sdk/Cargo.toml Cargo.toml
434435
git commit -m "Release v${{ env.VERSION_NAME }}"
435436
git push origin release/${{ env.VERSION_NAME }}
436437

0 commit comments

Comments
 (0)