Skip to content

feat: extract version action#167

Closed
0marperez wants to merge 15 commits intomainfrom
extract-version
Closed

feat: extract version action#167
0marperez wants to merge 15 commits intomainfrom
extract-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 +22 to +28
run: |
echo "Looking for version '${{inputs.version-name}}' in '${{inputs.file-path}}'"
version=$(awk -F'=' -v k="${{inputs.version-name}}" '$1 ~ "^"k"[[:space:]]*" { gsub(/[[:space:]]*/, "", $2); gsub(/"/,"",$2); print $2 }' ${{inputs.file-path}})
echo "Found version '$version'"

echo "Saving version to '${{inputs.output-path}}/version.txt'"
echo "$version" > ${{inputs.output-path}}/version.txt
Copy link
Contributor

Choose a reason for hiding this comment

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

Correctness: We already have a kat action to handle this:

cd ${{inputs.working-directory}}
kat get-property "${{inputs.version-name}}" > ${{inputs.output-path}}/version.txt

@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