Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: insert new changelog action #238

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

DerTiedemann
Copy link
Contributor

No description provided.

@@ -56,16 +56,15 @@ runs:
gradle-cache: ${{ inputs.gradle-cache }}
gradle-cache-read-only: ${{ inputs.gradle-cache-read-only }}

- name: Generate changelog
run: ./gradlew -Pchangelog.githubRepository=${{ github.event.repository.name }} -Pchangelog.futureVersionTag=${{ github.ref_name }} -Pchangelog.sinceTag=${{ github.ref_name }} --stacktrace --info generateChangelog ${{ inputs.gradle-refresh-dependencies == 'true' && '--refresh-dependencies' || '' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to run gradle setup anymore. You can remove all inputs as well

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DerTiedemann gradle-setup is still present in this action

Copy link
Member

@philipp94831 philipp94831 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to use it for gradle-release action

@@ -169,13 +169,10 @@ jobs:

steps:
- name: Release on Github
uses: bakdata/ci-templates/actions/java-gradle-release-github@1.49.0
uses: bakdata/ci-templates/actions/java-gradle-release-github@tiedemann/fix-java-changelog
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo for all occurances

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes from this PR to the java-gradle-release workflow still need to be reapplied and retested again now that it is working for the GitHub release

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also swap the order of changelog generation and tagging, so that the up-to-date Changelog.md file is generated before the tagging, so that it is part of the tag later

@@ -63,7 +80,7 @@ runs:
id: git-cliff
with:
config: tmp_cliff.toml
args: "--tag ${{ inputs.tag }} --verbose"
args: "--tag ${{ inputs.tag }}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this include --unreleased as well, so we can generate the changelog for the version that we are about to release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants