From 47d822ea2be1d009f620c4bbe2ab90e1db8e49ca Mon Sep 17 00:00:00 2001 From: Alessandro Defendenti Date: Fri, 24 Nov 2023 14:58:15 +0100 Subject: [PATCH] FIX: grep taking only 1st value --- action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index 3da9b04..3d30229 100644 --- a/action.yaml +++ b/action.yaml @@ -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