Skip to content

Commit

Permalink
productionize the code
Browse files Browse the repository at this point in the history
  • Loading branch information
ebmifa committed Aug 19, 2024
1 parent 8c2f8c9 commit 8a65066
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release-notes-generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,14 @@ on:
description: 'Sui Release Tag'
type: string
required: true
default: devnet-test-tag
previous_branch:
description: 'Previous Release Branch (Ex: releases/sui-vX.XX.X-release)'
type: string
required: true
default: releases/sui-v1.29.0-release
current_branch:
description: 'Current Release Branch (Ex: releases/sui-vX.XX.X-release)'
type: string
required: true
default: releases/sui-v1.30.0-release

env:
RELEASE_NOTES_FILE: "./release_notes.txt"
Expand Down Expand Up @@ -66,7 +63,8 @@ jobs:
working-directory: ./
run: |
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} python ./scripts/release_notes.py generate ${{ env.previous_commit }} ${{ env.current_commit }} | tee -a ${{ env.RELEASE_NOTES_FILE }}
echo "### Full Log: https://github.com/MystenLabs/sui/commits/${{ inputs.release_tag }}" >> ${{ env.RELEASE_NOTES_FILE }}
echo "---" >> ${{ env.RELEASE_NOTES_FILE }}
echo "#### Full Log: https://github.com/MystenLabs/sui/commits/${{ inputs.release_tag }}" >> ${{ env.RELEASE_NOTES_FILE }}
if [[ ${{ inputs.release_tag }} == devnet* ]]; then
echo "pre_release=true" >> $GITHUB_ENV
Expand All @@ -81,6 +79,6 @@ jobs:
with:
tag_name: ${{ inputs.release_tag }}
release_name: ${{ inputs.release_tag }}
body_path: ./release_notes.txt
body_path: ${{ env.RELEASE_NOTES_FILE }}
draft: false
prerelease: ${{ env.pre_release }}
2 changes: 1 addition & 1 deletion scripts/release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def do_generate(from_, to):
print(f"## {impacted}")

if impacted == "Protocol":
print(f"###Sui Protocol Version in this release: `{protocol_version}`")
print(f"#### Sui Protocol Version in this release: `{protocol_version}`")
print()

for pr, note in reversed(notes):
Expand Down

0 comments on commit 8a65066

Please sign in to comment.