Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: improved changelog generator #2610

Closed
wants to merge 8 commits into from
Closed
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,30 @@ jobs:
token: ${{ secrets.GH_BOT_TOKEN }}
validate: true

- uses: cardinalby/git-get-release-action@v1
id: github_latest_stable
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
latest: true
draft: false
prerelease: false

- name: "Generate Changelog"
id: build_changelog
uses: requarks/changelog-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
fromTag: ${{ github.ref_name }}
toTag: ${{steps.github_latest_stable.outputs.tag_name}}
Hazer marked this conversation as resolved.
Show resolved Hide resolved
writeToFile: false

- name: "Print Changelog"
id: print_changelog
run: |
echo "Generated Changelog fromTag ${{steps.github_latest_stable.outputs.tag_name}} to ${{ github.ref_name }}"
echo "${{steps.build_changelog.outputs.changes}}"

- name: Create/Update GitHub Release
if: >-
matrix.release &&
Expand All @@ -571,7 +595,8 @@ jobs:
allowUpdates: true
artifacts: '${{ github.workspace }}/homebrew/*'
discussionCategory: announcements
generateReleaseNotes: true
generateReleaseNotes: false
body: ${{steps.build_changelog.outputs.changelog}}
name: ${{ needs.setup_release.outputs.release_tag }}
prerelease: true
tag: ${{ needs.setup_release.outputs.release_tag }}
Expand Down
Loading