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
|
# Create git tag and push
|
||||||
- name: git-tag
|
- name: git-tag
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
environment:
|
secrets: [github_token]
|
||||||
GITHUB_TOKEN:
|
|
||||||
from_secret: github_token
|
|
||||||
commands:
|
commands:
|
||||||
- |
|
- echo "Token length ${#GITHUB_TOKEN}"
|
||||||
TAG=$(cat .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"
|
||||||
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"
|
|
||||||
depends_on: [package, docker]
|
depends_on: [package, docker]
|
||||||
|
|
||||||
# Create GitHub release
|
# Create GitHub release
|
||||||
|
|||||||
Reference in New Issue
Block a user