Skip to content

Commit

Permalink
Closes #32 - Implementation of Github Action that generates the relea…
Browse files Browse the repository at this point in the history
…se changelog how it was previously done (#33)
  • Loading branch information
danipaniii authored Mar 27, 2023
1 parent 73f5025 commit 61b4166
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 36 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/eumserver-release-config.json

This file was deleted.

20 changes: 14 additions & 6 deletions .github/workflows/eumserver_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,29 @@ jobs:
run: |
cd ./artifacts
sha256sum * >> inspectit-ocelot-eum-server-sha256-checksums.txt
- name: "Get previous tag"
id: previoustag
# this gets the tag of the previous release based on the tags in the repo
run: echo "tag=$(git ls-remote --tags | cut --delimiter='/' --fields=3 | tail --lines=2 | head -n -1)" >> $GITHUB_OUTPUT
- name: "Build Changelog"
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v3.5.0
uses: heinrichreimer/github-changelog-generator-action@v2.3
with:
# Config for the Changelog, reference: https://github.com/marketplace/actions/release-changelog-builder
configuration: ".github/workflows/eumserver-release-config.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
sinceTag: ${{ steps.previoustag.outputs.tag }}
dateFormat:
maxIssues: 500
unreleased: false
author: false
headerLabel: "## Changelog"
stripGeneratorNotice: true
- name: Create Release
uses: softprops/action-gh-release@v0.1.15
with:
tag_name: ${{ github.ref_name }}
body: ${{ steps.build_changelog.outputs.changelog }}
files: artifacts/*
generate_release_notes: true
generate_release_notes: false
token: ${{ github.token }}
name: Version ${{ github.ref_name }}

Expand Down

0 comments on commit 61b4166

Please sign in to comment.