Skip to content

Commit

Permalink
Merge pull request #15 from Staketab/pre-build
Browse files Browse the repository at this point in the history
try awk
  • Loading branch information
duccas authored Oct 20, 2023
2 parents 5c4f7c7 + 36a89a1 commit b130963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: |
version=$(grep -oE 'version\s+=\s+"([^"]+)"' ./release | awk -F'"' '{print $2}')
release_name=$(grep -oE 'release_name\s+=\s+"([^"]+)"' ./release | awk -F'"' '{print $2}')
description=$(awk '/description = """$/,/"""/{if (!/description = """/ && !/"""/) print}' ./release)
description=$(awk 'BEGIN{p=0} /description = """/{p++; next} p==1' ./release)
echo "$description"
echo "::set-output name=TAG_NAME::$version"
echo "::set-output name=RELEASE_NAME::$release_name"
Expand Down

0 comments on commit b130963

Please sign in to comment.