Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKora committed Sep 18, 2023
1 parent ba0a355 commit 71eb829
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/java-gradle-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
steps:
- name: Release on Github
id: release
uses: bakdata/ci-templates/actions/java-gradle-release@feat/changelog-def
uses: bakdata/ci-templates/actions/java-gradle-release@1.33.0
with:
release-type: ${{ inputs.release-type }}
github-email: ${{ secrets.github-email }}
Expand Down
20 changes: 10 additions & 10 deletions actions/changelog-generate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ Additional configuration options can be explored

## Input Parameters

| Name | Required | Default Value | Description |
| ------------------------- | :------: | :------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| github-token || - | The GitHub token for committing the changes |
| new-tag || - | Defines until which tag the changelog will consider merged pull requests (can be a tag or a valid git ref) |
| changelog-file || "CHANGELOG.md" | Path to the Changelog.md file |
| commit-mode || "false" | Special configuration for projects which work without PRs. Uses commit messages as changelog. This mode looses access to information only available for PRs. |
| config || "" | Path to the changelog config JSON file |
| fetch-release-information || "false" | Will enable fetching additional release information from tags. |
| fetch-reviewers || "false" | Will enable fetching the users/reviewers who approved the PR. |
| old-tag || "" | Defines the 'start' from where the changelog will consider merged pull requests (can be a tag or a valid git ref) |
| Name | Required | Default Value | Description |
| ------------------------- | :------: | :-----------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| github-token || - | The GitHub token for committing the changes |
| new-tag || - | Defines until which tag the changelog will consider merged pull requests (can be a tag or a valid git ref) |
| changelog-file || "CHANGELOG.md" | Path to the Changelog.md file |
| commit-mode || "false" | Special configuration for projects which work without PRs. Uses commit messages as changelog. This mode looses access to information only available for PRs. |
| config || "$GITHUB_ACTION_PATH/changelog-config.json" | Path to the changelog config JSON file |
| fetch-release-information || "false" | Will enable fetching additional release information from tags. |
| fetch-reviewers || "false" | Will enable fetching the users/reviewers who approved the PR. |
| old-tag || "" | Defines the 'start' from where the changelog will consider merged pull requests (can be a tag or a valid git ref) |

## Outputs

Expand Down
2 changes: 0 additions & 2 deletions actions/changelog-generate/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ runs:
shell: bash

- name: "Create changelog"
env:
CONFIG_PATH: ${{ inputs.config }}
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion actions/java-gradle-release/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ runs:

- name: Create changelog
id: build-changelog
uses: bakdata/ci-templates/actions/changelog-generate@feat/changelog-def
uses: bakdata/ci-templates/actions/changelog-generate@1.33.0
with:
github-token: ${{ inputs.github-token }}
new-tag: ${{ steps.bump-version.outputs.release-version }}
Expand Down

0 comments on commit 71eb829

Please sign in to comment.