Skip to content

Commit bf8c2f6

Browse files
committed
ci(workflow): fix release automation workflow
1 parent f2cfa92 commit bf8c2f6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/release-automation.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,22 @@ jobs:
149149
150150
echo "✅ Tag $VERSION created and pushed successfully"
151151
152+
- name: Trigger deployment workflow
153+
if: steps.check_tag.outputs.tag_exists == 'false'
154+
env:
155+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
156+
run: |
157+
VERSION="${{ steps.version.outputs.version }}"
158+
159+
echo "🚀 Manually triggering deployment workflow for tag $VERSION..."
160+
161+
# Trigger the deploy workflow by creating a repository dispatch event
162+
# Since we can't directly trigger tag-based workflows, we'll use workflow_dispatch
163+
# But first, let's try using the GitHub CLI to trigger it
164+
gh workflow run deploy.yml --ref "$VERSION" || echo "⚠️ Could not trigger via workflow dispatch, deployment should trigger automatically"
165+
166+
echo "✅ Deployment trigger attempted"
167+
152168
# STEP 2: CREATE BACK-MERGE TO DEVELOP
153169
- name: Generate unique back-merge branch name
154170
id: branch_name

0 commit comments

Comments
 (0)