fix: try secrets directive instead of environment
Testing if secrets directive injects the token 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:
+3
-13
@@ -92,20 +92,10 @@ steps:
|
||||
# Create git tag and push
|
||||
- name: git-tag
|
||||
image: alpine/git
|
||||
environment:
|
||||
GITHUB_TOKEN:
|
||||
from_secret: github_token
|
||||
secrets: [github_token]
|
||||
commands:
|
||||
- |
|
||||
TAG=$(cat .tag)
|
||||
VERSION=$(cat .version)
|
||||
echo "Creating tag $TAG for version $VERSION"
|
||||
echo "Token length: ${#GITHUB_TOKEN}"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user