mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 21:40:01 +08:00
Generate changelog
This commit is contained in:
parent
f3033fbaf1
commit
fec68263d5
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -71,6 +71,24 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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
|
name: Create a release
|
||||||
uses: action-pack/github-release@v2
|
uses: action-pack/github-release@v2
|
||||||
@ -79,7 +97,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tag: "v${{ vars.MAJOR }}.${{ vars.MINOR }}"
|
tag: "v${{ vars.MAJOR }}.${{ vars.MINOR }}"
|
||||||
title: "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
|
name: Increment version variable
|
||||||
uses: action-pack/bump@v2
|
uses: action-pack/bump@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user