Skip to content

feat: depend on version action#168

Closed
0marperez wants to merge 11 commits intomainfrom
depend-on-version
Closed

feat: depend on version action#168
0marperez wants to merge 11 commits intomainfrom
depend-on-version

Conversation

@0marperez
Copy link
Contributor

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@0marperez 0marperez marked this pull request as ready for review March 3, 2026 22:02
@0marperez 0marperez requested a review from a team as a code owner March 3, 2026 22:02
Comment on lines +13 to +24
runs:
using: composite
steps:
- name: Update dependency
working-directory: ${{inputs.working-directory}}
shell: bash
run: |
echo "Updating depdendency '${{inputs.dependency}}' to '${{inputs.version}}'"
sed -i "s/^${{ inputs.dependency }} = \".*\"/${{ inputs.dependency }} = \"${{ inputs.version }}\"/" gradle/libs.versions.toml

echo "Printing first occurence of '${{inputs.dependency}}' in 'libs.versions.toml':"
grep "${{inputs.dependency}}" gradle/libs.versions.toml | head -n 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: Since the kat tool already supports reading/modifying version strings in gradle.properties, it feels natural that it would handle libs.versions.toml too. I suggest moving the implementation of version catalog manipulation into kat and eliminate this action.

@0marperez 0marperez closed this Mar 4, 2026
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.

2 participants