fix: escape variables with $$ for Woodpecker preprocessing

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 <noreply@anthropic.com>
This commit is contained in:
Barry Walker
2026-01-13 16:38:43 -05:00
parent c3d23c992d
commit 3ce5ef3897
+5 -3
View File
@@ -92,10 +92,12 @@ steps:
# Create git tag and push # Create git tag and push
- name: git-tag - name: git-tag
image: alpine/git image: alpine/git
secrets: [github_token] environment:
GITHUB_TOKEN:
from_secret: github_token
commands: commands:
- echo "Token length ${#GITHUB_TOKEN}" - 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" - 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] depends_on: [package, docker]
# Create GitHub release # Create GitHub release