mirror of
https://github.com/delibae/claude-prism.git
synced 2026-08-28 05:14:59 +00:00
fix: trigger build workflow via workflow_dispatch after covector publish
GITHUB_TOKEN tag pushes don't trigger other workflows (GitHub limitation). Use gh workflow run to explicitly trigger Build Desktop after creating the unified v* tag. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
fb3914585e
commit
bb80c99271
1 changed files with 10 additions and 3 deletions
|
|
@ -8,6 +8,7 @@ on:
|
|||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
actions: write
|
||||
|
||||
jobs:
|
||||
version-or-publish:
|
||||
|
|
@ -45,22 +46,28 @@ jobs:
|
|||
command: version-or-publish
|
||||
createRelease: true
|
||||
|
||||
- name: Create unified release tag
|
||||
- name: Create unified release tag and trigger build
|
||||
if: steps.covector.outputs.commandRan == 'publish'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
# Extract version from root package.json
|
||||
VERSION=$(node -p "require('./package.json').version")
|
||||
TAG="v${VERSION}"
|
||||
|
||||
# Only create tag if it doesn't already exist
|
||||
# Create tag if it doesn't already exist
|
||||
if ! git rev-parse "$TAG" >/dev/null 2>&1; then
|
||||
echo "Creating unified tag: $TAG"
|
||||
git tag "$TAG"
|
||||
git push origin "$TAG"
|
||||
else
|
||||
echo "Tag $TAG already exists, skipping"
|
||||
echo "Tag $TAG already exists"
|
||||
fi
|
||||
|
||||
# Trigger build workflow (GITHUB_TOKEN pushes don't trigger other workflows)
|
||||
echo "Triggering Build Desktop workflow for $TAG"
|
||||
gh workflow run "Build Desktop" --ref "$TAG"
|
||||
|
||||
- name: Sync Cargo.lock
|
||||
if: steps.covector.outputs.commandRan == 'version'
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue