File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 3
3
name : Create github release
4
4
5
5
on :
6
- push :
7
- tags :
8
- - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
6
+ workflow_dispatch :
9
7
10
8
jobs :
11
9
build :
12
10
name : Create Release
13
11
runs-on : ubuntu-latest
14
12
steps :
13
+ - name : Get latest version tag
14
+ id : latest_version
15
+ run : echo "VERSION=$(git tag --merged | sort -V | tail -1)" >> $GITHUB_OUTPUT
15
16
- name : Checkout code
16
17
uses : actions/checkout@v2
17
18
with :
27
28
env :
28
29
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
29
30
with :
30
- tag_name : ${{ github.ref }}
31
- release_name : Release ${{ github.ref }}
31
+ tag_name : ${{ steps.latest_version.outputs.VERSION }}
32
+ release_name : Release ${{ steps.latest_version.outputs.VERSION }}
32
33
body : |
33
34
${{ steps.Changelog.outputs.changelog }}
34
35
draft : false
You can’t perform that action at this time.
0 commit comments