Skip to content

Commit

Permalink
Mock #8
Browse files Browse the repository at this point in the history
  • Loading branch information
WriteNaN authored Apr 3, 2024
1 parent 3f494e3 commit dd02b18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ extract_version_and_changes() {
local body=$1
local version=$(echo "$body" | grep -oE '^Version:\s*(.+)$' | sed -E 's/^Version:\s*(.+)$/\1/')
local changes=$(echo "$body" | sed -n '/# Changes/,$p' | sed '1d')
echo "$version"
echo "$changes"
echo "::set-output name=version::$version"
echo "::set-output name=changes::$changes"
}

extract_version_and_changes "$1"

0 comments on commit dd02b18

Please sign in to comment.