We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6b7ee6 commit a03328cCopy full SHA for a03328c
.github/workflows/createRelease.yml
@@ -85,7 +85,10 @@ jobs:
85
echo "$releaseDefinitionOutput"
86
87
# Extract YAML content (lines starting with a space) and remove ANSI color codes
88
- echo "$releaseDefinitionOutput" | sed 's/\x1b[[0-9;]*m//g' | awk '/^release:/,0' > releases/${RELEASE_NAME}/${RELEASE_NAME}.yml
+ echo "$releaseDefinitionOutput" \
89
+ | sed 's/\x1b[[0-9;]*m//g' \
90
+ | awk '/^release:/,/^$/' \
91
+ | sed '/^$/d' > "releases/${RELEASE_NAME}/${RELEASE_NAME}.yml"
92
93
# Verify the file was created and has content
94
if [ -s "releases/${RELEASE_NAME}/${RELEASE_NAME}.yml" ]; then
0 commit comments