Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 12c7c2f2bf0c550d5cde244e93fc8c3ed7299787
Author: Carlos Baez <cb@mamoru.ai>
Date:   Fri Aug 30 09:51:17 2024 +0200

    Merged for v1.32 version

    Signed-off-by: Carlos Baez <cb@mamoru.ai>
  • Loading branch information
carlosbmamoru committed Aug 30, 2024
1 parent b89617a commit 11e4454
Show file tree
Hide file tree
Showing 657 changed files with 29,322 additions and 11,931 deletions.
5 changes: 5 additions & 0 deletions .cargo/config → .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ xclippy = [
"clippy", "--all-targets", "--all-features", "--",
"-Wclippy::all",
"-Wclippy::disallowed_methods",
"-Aclippy::unnecessary_get_then_check",
]
xlint = "run --package x --bin x -- lint"
xtest = "run --package x --bin x -- external-crates-tests"
Expand All @@ -22,6 +23,9 @@ move-clippy = [
"-Aclippy::upper_case_acronyms",
"-Aclippy::type_complexity",
"-Aclippy::new_without_default",
"-Aclippy::question_mark",
"-Aclippy::unnecessary_get_then_check",
"-Aclippy::needless_borrows_for_generic_args",
]

mysql-clippy = [
Expand All @@ -38,6 +42,7 @@ mysql-clippy = [
"-Aclippy::upper_case_acronyms",
"-Aclippy::type_complexity",
"-Aclippy::new_without_default",
"-Aclippy::unnecessary_get_then_check",
]

[build]
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/release-notes-generator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Create Sui Release with Release Notes

concurrency: ${{ github.workflow }}-${{ inputs.release_tag }}

on:
workflow_dispatch:
inputs:
release_tag:
description: 'Sui Release Tag'
type: string
required: true
previous_branch:
description: 'Previous Release Branch (Ex: releases/sui-vX.XX.X-release)'
type: string
required: true
current_branch:
description: 'Current Release Branch (Ex: releases/sui-vX.XX.X-release)'
type: string
required: true

env:
RELEASE_NOTES_FILE: "./release_notes.txt"

jobs:
get-release-notes:
name: Get Release Notes for ${{ inputs.release_tag }} release
runs-on: ubuntu-latest

steps:
- name: Get commits for branches
shell: bash
working-directory: ./
run: |
echo "previous_commit=$(curl https://api.github.com/repos/MystenLabs/sui/commits/${{ inputs.previous_branch }} | jq .sha)" >> $GITHUB_ENV
echo "current_commit=$(curl https://api.github.com/repos/MystenLabs/sui/commits/${{ inputs.current_branch }} | jq .sha)" >> $GITHUB_ENV
- name: Checkout main
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1
with:
fetch-depth: 0
ref: main

- name: Setup Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # pin@v5.0.0
with:
python-version: 3.10.10

- name: Generate Release Notes
shell: bash
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 "---" >> ${{ 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
else
echo "pre_release=false" >> $GITHUB_ENV
fi
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ inputs.release_tag }}
release_name: ${{ inputs.release_tag }}
body_path: ${{ env.RELEASE_NOTES_FILE }}
draft: false
prerelease: ${{ env.pre_release }}
Loading

0 comments on commit 11e4454

Please sign in to comment.