Skip to content

Commit

Permalink
Generate changelog
Browse files Browse the repository at this point in the history
Generate changelog
  • Loading branch information
kroese committed May 23, 2023
2 parents 5879c5e + 7902b44 commit f507f9b
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/build.yml
Expand Up @@ -71,6 +71,24 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Get previous tag
id: previousTag
run: |
name=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | tail -2 | head -1)
echo "previousTag: $name"
echo "previousTag=$name" >> $GITHUB_ENV
-
name: Generate changelog
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
fromTag: ${{ github.ref_name }}
toTag: ${{ env.previousTag }}
writeToFile: false
-
name: Create a release
uses: action-pack/github-release@v2
Expand All @@ -79,7 +97,7 @@ jobs:
with:
tag: "v${{ vars.MAJOR }}.${{ vars.MINOR }}"
title: "v${{ vars.MAJOR }}.${{ vars.MINOR }}"
body: "Release v${{ vars.MAJOR }}.${{ vars.MINOR }}"
body: "${{ steps.changelog.outputs.changes }}"
-
name: Increment version variable
uses: action-pack/bump@v2
Expand Down

0 comments on commit f507f9b

Please sign in to comment.