From 3ce5ef3897206d59433b0c5c0c3c16c5868f5005 Mon Sep 17 00:00:00 2001 From: Barry Walker Date: Tue, 13 Jan 2026 16:38:43 -0500 Subject: [PATCH] fix: escape variables with $$ for Woodpecker preprocessing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Woodpecker evaluates ${VAR} before the shell runs. Using $$ escaping so variables are passed to the shell properly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .woodpecker/release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.woodpecker/release.yml b/.woodpecker/release.yml index fe9f712..c5846cc 100644 --- a/.woodpecker/release.yml +++ b/.woodpecker/release.yml @@ -92,10 +92,12 @@ steps: # Create git tag and push - name: git-tag image: alpine/git - secrets: [github_token] + environment: + GITHUB_TOKEN: + from_secret: github_token commands: - - echo "Token length ${#GITHUB_TOKEN}" - - TAG=$(cat .tag) && VERSION=$(cat .version) && echo "Creating tag $TAG for version $VERSION" && git config user.email "ci@woodpecker.local" && git config user.name "Woodpecker CI" && git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/barryw/PaperlessMCP.git" && git tag -a "$TAG" -m "Release $VERSION" && git push origin "$TAG" + - echo "Token length $${#GITHUB_TOKEN}" + - TAG=$$(cat .tag) && VERSION=$$(cat .version) && echo "Creating tag $$TAG for version $$VERSION" && git config user.email "ci@woodpecker.local" && git config user.name "Woodpecker CI" && git remote set-url origin "https://x-access-token:$${GITHUB_TOKEN}@github.com/barryw/PaperlessMCP.git" && git tag -a "$$TAG" -m "Release $$VERSION" && git push origin "$$TAG" depends_on: [package, docker] # Create GitHub release