4
4
name : Automated Release
5
5
on :
6
6
schedule :
7
- - cron : 27 4 * * TUE
7
+ - cron : 35 3 * * WED
8
8
workflow_dispatch :
9
9
jobs :
10
10
publish :
13
13
contents : write
14
14
steps :
15
15
- id : checkout
16
- name : Checkout
16
+ name : Clone Git Repository
17
17
uses : actions/checkout@v4
18
18
with :
19
19
fetch-depth : 0
24
24
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
25
- id : commits
26
26
name : Count Commits
27
- run : echo "count=$(git rev-list --count ${{ steps.last_release.outputs.tag }}..HEAD)" >> $GITHUB_OUTPUT
27
+ run : echo "count=$(git rev-list --count ${{ steps.last_release.outputs.tag }}..HEAD -- pom.xml storage-units-dozer storage-units-eclipselink storage-units-gson storage-units-jackson storage-units-jakarta storage-units-mapstruct storage-units-model storage-units-modelmapper storage-units-mongodb storage-units-orika storage-units-simple )" >> $GITHUB_OUTPUT
28
28
- id : release
29
29
name : Create Release Version
30
30
if : steps.commits.outputs.count > 0
@@ -38,33 +38,15 @@ jobs:
38
38
if : steps.commits.outputs.count > 0
39
39
run : echo "iso8601=$(date --utc --iso-8601=seconds)" >> $GITHUB_OUTPUT
40
40
- id : setup-java
41
- name : Set up Java
41
+ uses : ./.github/actions/managed-maven
42
42
if : steps.commits.outputs.count > 0
43
- uses : actions/setup-java@v4
44
- with :
45
- java-version : 17
46
- java-package : jdk
47
- architecture : x64
48
- distribution : temurin
49
- server-id : ossrh
50
- server-username : MAVEN_CENTRAL_USERNAME
51
- server-password : MAVEN_CENTRAL_TOKEN
52
- - id : cache
53
- name : Cache Dependencies
54
- if : steps.commits.outputs.count > 0
55
- uses : actions/cache@v3
56
- with :
57
- path : ~/.m2/repository
58
- key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
59
- restore-keys : |
60
- ${{ runner.os }}-maven-
61
43
- id : gpg
62
44
name : GPG Key
63
45
if : steps.commits.outputs.count > 0
64
- uses : timheuer/base64-to-file@v1.2
46
+ uses : timheuer/base64-to-file@v1
65
47
with :
66
48
fileName : signing.key.asc
67
- fileDir : ${{ github.workspace}}
49
+ fileDir : ${{ github.workspace }}
68
50
encodedString : ${{ secrets.GPG_SECRET_KEY_BASE64 }}
69
51
- id : pom-version
70
52
name : Set Release Version
108
90
password : ${{ secrets.MAIL_PASSWORD }}
109
91
subject : ${{ github.event.repository.name }} version ${{ steps.release.outputs.version }} published
110
92
body : See ${{ steps.create_release.outputs.url }} for details.
111
-
93
+ to : ${{ secrets.MAIL_RECIPIENT }}
112
94
from : ${{ secrets.MAIL_SENDER }}
113
95
- id : matrix
114
96
name : Send Matrix Message
@@ -118,4 +100,4 @@ jobs:
118
100
room_id : ${{ secrets.MATRIX_ROOM_ID }}
119
101
access_token : ${{ secrets.MATRIX_ACCESS_TOKEN }}
120
102
message : ${{ github.event.repository.name }} version [${{ steps.release.outputs.version }}](${{ steps.create_release.outputs.url }}) published
121
- server : matrix.org
103
+ server : ${{ secrets.MATRIX_SERVER }}
0 commit comments