Skip to content

Commit 99a7de7

Browse files
committed
Improve heylogs workflow
1 parent 0ab9328 commit 99a7de7

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/heylogs.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,25 @@ name: Heylogs
22

33
on: [ push ]
44

5+
env:
6+
MAVEN_ARGS: "-B -ntp"
7+
58
jobs:
69
badge-job:
710
if: startsWith(github.repository, 'nbbrd/') && startsWith(github.ref, 'refs/heads/develop')
811
runs-on: ubuntu-latest
912
steps:
10-
- name: Checkout source code
11-
uses: actions/checkout@v4
12-
13-
- name: Setup Java
14-
uses: actions/setup-java@v4
15-
with:
16-
distribution: 'temurin'
17-
java-version: 21
18-
cache: 'maven'
19-
13+
- name: Checkout and Setup Maven
14+
15+
2016
- name: Scan changelog
21-
run: mvn -B -ntp -U com.github.nbbrd.heylogs:heylogs-maven-plugin::scan -Dheylogs.output.file=scan.json -Dheylogs.format.id=json
22-
17+
run: mvn -U com.github.nbbrd.heylogs:heylogs-maven-plugin::scan -Dheylogs.output.file=scan.json -Dheylogs.format.id=json
18+
2319
- name: Create badges endpoint json
2420
run: |
2521
mkdir heylogs
2622
jq '{schemaVersion: 1, label: "unreleased changes", message: "#\(.[0].summary.unreleasedChanges)", color: "E05735", logoColor: "white", namedLogo: "keepachangelog"}' scan.json > heylogs/unreleased-changes.json
27-
23+
2824
- name: Deploy badges endpoint json
2925
uses: peaceiris/actions-gh-pages@v4
3026
with:

0 commit comments

Comments
 (0)