File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
1
on :
2
+ workflow_dispatch :
2
3
push :
3
- tags :
4
- - ' v* '
4
+ branches :
5
+ - main
5
6
6
7
jobs :
7
8
build-and-release :
@@ -13,18 +14,29 @@ jobs:
13
14
- name : Checkout code
14
15
uses : actions/checkout@v4
15
16
17
+ - uses : TriPSs/conventional-changelog-action@v5
18
+ id : changelog
19
+ with :
20
+ output-file : " false"
21
+ github-token : ${{ secrets.github_token }}
22
+
16
23
- name : Make build script executable
24
+ if : ${{ steps.changelog.outputs.skipped == 'false' }}
17
25
run : chmod +x ./build.sh
18
26
19
27
- name : Run build script
20
- run : ./build.sh
28
+ if : ${{ steps.changelog.outputs.skipped == 'false' }}
29
+ run : ./build.sh ${{ steps.changelog.outputs.version }}
21
30
22
31
- name : Create Release
23
32
id : create_release
33
+ if : ${{ steps.changelog.outputs.skipped == 'false' }}
24
34
uses : softprops/action-gh-release@v1
25
35
with :
26
36
files : ./target/hawk-auth-server-extension.jar
27
- name : Release ${{ github.ref_name }}
37
+ body : ${{ steps.changelog.outputs.clean_changelog }}
38
+ tag_name : ${{ steps.changelog.outputs.tag }}
39
+ name : ${{ steps.changelog.outputs.tag }}
28
40
draft : false
29
41
prerelease : false
30
42
token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments