ci: generate changelog with python script for nightly (#8728)

ci: generate changelog with python script for nightly releases
This commit is contained in:
Loong
2024-03-30 23:39:15 +08:00
committed by GitHub
parent 8998a119ad
commit 44e10ecb60

View File

@@ -96,9 +96,11 @@ jobs:
- name: Generate Changelog
id: generate_changelog
run: |
$content=$(git log --pretty=format:"* %s [@%an](https://github.com/%an) \n\n" ${{ steps.set_tag.outputs.latest_tag }}..alpha/${{ steps.set_tag.outputs.tag }})
$content=$(python3 tools/ChangelogGenerator/changelog_generator.py --latest "${{ steps.set_tag.outputs.latest_tag }}" --tag "${{ steps.set_tag.outputs.tag }}")
echo "changelog=### Commits\n\n$content" >> $env:GITHUB_OUTPUT
echo $content
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cache .nuke/temp, ~/.nuget/packages
id: cache-nuget
@@ -108,7 +110,7 @@ jobs:
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
- name: Restore dependencies
if: steps.cache-nuget.outputs.cache-hit != 'true'
run: dotnet restore