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 37ecc90 commit f8937a8Copy full SHA for f8937a8
release.sh
@@ -9,8 +9,8 @@ VER="$GITHUB_REF_NAME"
9
# Extract the changelog section for the current version
10
# Matches version with optional colon, captures until the next version line or EOF
11
NOTES=$(awk -v ver="$VER" '
12
- BEGIN { found=0; printing=0 }
13
- $0 ~ "^"ver":?"$ { found=1; printing=1; next }
+ BEGIN { found=0; printing=0; pattern="^"ver":?$" }
+ $0 ~ pattern { found=1; printing=1; next }
14
printing && /^[0-9]+\.[0-9]+\.[0-9]+:?$/ { printing=0 }
15
printing { print }
16
END { if (!found) exit 1 }
0 commit comments