Skip to content

Commit d4f1545

Browse files
authored
Update changelog generator action to fix deprecated warning (#38)
1 parent c3fd112 commit d4f1545

1 file changed

Lines changed: 72 additions & 72 deletions

File tree

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,77 @@
11
name: Release Eum Server
22

3-
on:
4-
push:
5-
tags:
6-
- '[0-9]*.[0-9]*.[0-9]**'
3+
on:
4+
push:
5+
tags:
6+
- '[0-9]*.[0-9]*.[0-9]**'
77

88
jobs:
9-
test_eum_server:
10-
uses: ./.github/workflows/eumserver_test.yml
11-
12-
build_and_release:
13-
name: Build and release EUM Server
14-
runs-on: ubuntu-latest
15-
needs: [test_eum_server]
16-
steps:
17-
- name: Checkout code
18-
uses: actions/checkout@v3
19-
- name: Grant execute permission for gradlew
20-
run: chmod +x gradlew
21-
- name: Build project
22-
run: ./gradlew assemble bootJar -PbuildVersion=${{ github.ref_name }}
23-
- name: Create BOM
24-
run: ./gradlew cyclonedxBom
25-
- name: Add artifacts
26-
run: |
27-
mkdir artifacts
28-
cp build/libs/*.jar ./artifacts
29-
cp build/reports/bom.json ./artifacts
30-
cp build/reports/bom.xml ./artifacts
31-
- name: Generate Release Hashes
32-
run: |
33-
cd ./artifacts
34-
sha256sum * >> inspectit-ocelot-eum-server-sha256-checksums.txt
35-
- name: "Get previous tag"
36-
id: previoustag
37-
# this gets the tag of the previous release based on the tags in the repo
38-
run: echo "tag=$(git ls-remote --tags | cut --delimiter='/' --fields=3 | tail --lines=2 | head -n -1)" >> $GITHUB_OUTPUT
39-
- name: "Build Changelog"
40-
id: build_changelog
41-
uses: heinrichreimer/github-changelog-generator-action@v2.3
42-
with:
43-
token: ${{ secrets.GITHUB_TOKEN }}
44-
sinceTag: ${{ steps.previoustag.outputs.tag }}
45-
dateFormat:
46-
maxIssues: 500
47-
unreleased: false
48-
author: false
49-
headerLabel: "## Changelog"
50-
stripGeneratorNotice: true
51-
- name: Create Release
52-
uses: softprops/action-gh-release@v0.1.15
53-
with:
54-
tag_name: ${{ github.ref_name }}
55-
body: ${{ steps.build_changelog.outputs.changelog }}
56-
files: artifacts/*
57-
generate_release_notes: false
58-
token: ${{ github.token }}
59-
name: Version ${{ github.ref_name }}
9+
test_eum_server:
10+
uses: ./.github/workflows/eumserver_test.yml
6011

61-
build_and_publish_docker_images:
62-
name: "Build and Push Docker Images"
63-
runs-on: ubuntu-latest
64-
needs: build_and_release
65-
environment: release
66-
steps:
67-
- name: Checkout
68-
uses: actions/checkout@v3
69-
- name: Grant execute permission for gradlew
70-
run: chmod +x gradlew
71-
- name: Build Docker Images
72-
run: ./gradlew dockerTag -PbuildVersion=${{ github.ref_name }}
73-
- name: Push Docker Images
74-
run: |
75-
docker login -u ${{ secrets.DOCKER_HUB_USER }} -p ${{ secrets.DOCKER_HUB_PASSWORD }}
76-
docker push inspectit/inspectit-ocelot-eum-server:${{ github.ref_name }}
77-
docker push inspectit/inspectit-ocelot-eum-server:latest
12+
build_and_release:
13+
name: Build and release EUM Server
14+
runs-on: ubuntu-latest
15+
needs: [test_eum_server]
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
- name: Grant execute permission for gradlew
20+
run: chmod +x gradlew
21+
- name: Build project
22+
run: ./gradlew assemble bootJar -PbuildVersion=${{ github.ref_name }}
23+
- name: Create BOM
24+
run: ./gradlew cyclonedxBom
25+
- name: Add artifacts
26+
run: |
27+
mkdir artifacts
28+
cp build/libs/*.jar ./artifacts
29+
cp build/reports/bom.json ./artifacts
30+
cp build/reports/bom.xml ./artifacts
31+
- name: Generate Release Hashes
32+
run: |
33+
cd ./artifacts
34+
sha256sum * >> inspectit-ocelot-eum-server-sha256-checksums.txt
35+
- name: "Get previous tag"
36+
id: previoustag
37+
# this gets the tag of the previous release based on the tags in the repo
38+
run: echo "tag=$(git ls-remote --tags | cut --delimiter='/' --fields=3 | tail --lines=2 | head -n -1)" >> $GITHUB_OUTPUT
39+
- name: "Build Changelog"
40+
id: build_changelog
41+
uses: danipaniii/action-github-changelog-generator@v1.2
42+
with:
43+
token: ${{ secrets.GITHUB_TOKEN }}
44+
sinceTag: ${{ steps.previoustag.outputs.tag }}
45+
dateFormat:
46+
maxIssues: 500
47+
unreleased: false
48+
author: false
49+
headerLabel: "## Changelog"
50+
stripGeneratorNotice: true
51+
- name: Create Release
52+
uses: softprops/action-gh-release@v0.1.15
53+
with:
54+
tag_name: ${{ github.ref_name }}
55+
body: ${{ steps.build_changelog.outputs.changelog }}
56+
files: artifacts/*
57+
generate_release_notes: false
58+
token: ${{ github.token }}
59+
name: Version ${{ github.ref_name }}
60+
61+
build_and_publish_docker_images:
62+
name: "Build and Push Docker Images"
63+
runs-on: ubuntu-latest
64+
needs: build_and_release
65+
environment: release
66+
steps:
67+
- name: Checkout
68+
uses: actions/checkout@v3
69+
- name: Grant execute permission for gradlew
70+
run: chmod +x gradlew
71+
- name: Build Docker Images
72+
run: ./gradlew dockerTag -PbuildVersion=${{ github.ref_name }}
73+
- name: Push Docker Images
74+
run: |
75+
docker login -u ${{ secrets.DOCKER_HUB_USER }} -p ${{ secrets.DOCKER_HUB_PASSWORD }}
76+
docker push inspectit/inspectit-ocelot-eum-server:${{ github.ref_name }}
77+
docker push inspectit/inspectit-ocelot-eum-server:latest

0 commit comments

Comments
 (0)