Skip to content

Commit a03328c

Browse files
committed
fix: rette opp i uthenting av yaml innhold
1 parent e6b7ee6 commit a03328c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/createRelease.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ jobs:
8585
echo "$releaseDefinitionOutput"
8686
8787
# 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
88+
echo "$releaseDefinitionOutput" \
89+
| sed 's/\x1b[[0-9;]*m//g' \
90+
| awk '/^release:/,/^$/' \
91+
| sed '/^$/d' > "releases/${RELEASE_NAME}/${RELEASE_NAME}.yml"
8992
9093
# Verify the file was created and has content
9194
if [ -s "releases/${RELEASE_NAME}/${RELEASE_NAME}.yml" ]; then

0 commit comments

Comments
 (0)