fix: escape shell variables in release pipeline #7
Reference in New Issue
Block a user
Delete Branch "benvin/fix-release-vars"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Woodpecker interpolates
${VERSION}as a (empty) CI variable before the shell runs. TheVERSIONshell variable set viasedwas never visible to theFILE=line.Fix:
$$escape all shell variable references ($${VERSION},$${FILE}) so Woodpecker passes them through to the shell.Woodpecker interpolates ${VERSION} as a CI variable (empty) before the shell sees it. Use $$ escaping so the shell assignment and references survive YAML interpolation.