-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package the generator as a GitHub Action
Closes gh-108
- Loading branch information
1 parent
89e320b
commit fed3670
Showing
4 changed files
with
107 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM gradle:8.5.0-jdk17-alpine as build | ||
COPY src /app/src/ | ||
COPY config /app/config/ | ||
COPY build.gradle settings.gradle gradle.properties /app/ | ||
RUN cd /app && gradle -Dorg.gradle.welcome=never --no-daemon bootJar | ||
|
||
FROM ghcr.io/bell-sw/liberica-openjre-debian:17.0.10-13 | ||
COPY --from=build /app/build/libs/github-changelog-generator.jar /opt/action/github-changelog-generator.jar | ||
ENTRYPOINT ["java", "-jar", "/opt/action/github-changelog-generator.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: 'GitHub Changelog Generator' | ||
description: 'Generates a changelog from the closed issues in a GitHub milestone' | ||
inputs: | ||
repository: | ||
description: 'Repository for which a changelog should be generated' | ||
required: false | ||
default: ${{ github.repository}} | ||
milestone: | ||
description: 'Milestone for which the changelog should be generated' | ||
required: true | ||
token: | ||
description: 'Optional token for authentication with GitHub. Authenticating increases GitHub rate limits' | ||
required: false | ||
config-file: | ||
description: 'Path to a changelog generator configuration file, relative to GITHUB_WORKSPACE' | ||
required: false | ||
changelog-file: | ||
description: 'Path of the file to which the changelog should be written' | ||
default: changelog.md | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.milestone }} | ||
- ${{ inputs.changelog-file }} | ||
- --changelog.repository=${{ inputs.repository }} | ||
- --github.token=${{ inputs.token }} | ||
- ${{ inputs.config-file != null && format('--spring.config.location=file:/github/workspace/{0}', inputs.config-file) || '' }} |