Skip to content

Commit

Permalink
Merge pull request #8 from TheFe91/bugfix/grep-not-taking-only-1st-value
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasLehnfeld authored Dec 29, 2023
2 parents 5ecf9b4 + 47d822e commit 26b0103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ runs:
steps:
- id: read-yaml
run: |
VERSION=`cat ${{inputs.file-path}} | grep -o 'version:[^:]*' | cut -f2 -d":" | xargs`
VERSION=`cat ${{inputs.file-path}} | grep -m 1 -o 'version:[^:]*' | cut -f2 -d":" | xargs`
echo "::set-output name=version::$(echo $VERSION)"
shell: bash

0 comments on commit 26b0103

Please sign in to comment.