Skip to content

Commit 14eec7d

Browse files
updated workflow
1 parent 63ed3e7 commit 14eec7d

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/sync-to-public.yml renamed to .github/workflows/sync-to-public-mirror.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ name: Sync Repository to Public Mirror
33
on:
44
pull_request:
55
types: [closed]
6-
# No branches filter means it will trigger for ALL branches
6+
branches:
7+
- '**'
8+
- '*'
9+
push:
10+
branches:
11+
- '*' # Match any branch without slashes
12+
- '**' # Match any branch with slashes
713
workflow_dispatch:
814
inputs:
915
force_sync:
@@ -18,11 +24,11 @@ on:
1824

1925
jobs:
2026
call-sync-workflow:
21-
# Only run this job when the PR was merged, not just closed
22-
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
23-
uses: thoughtspot/workflows/.github/workflows/sync-to-public-mirror.yml@c19c7b395533a67a484bb86bd497aa71ed279a07
27+
# Run for merged PRs, direct pushes, or manual triggers
28+
if: (github.event_name == 'pull_request' && github.event.pull_request.merged == true) || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
29+
uses: thoughtspot/workflows/.github/workflows/sync-to-public-mirror.yml@5e34672e14727605657a131a08657fef8bb5ec48
2430
with:
2531
force_sync: ${{ github.event.inputs.force_sync == 'true' }}
2632
public_repo_name: ${{ github.event.inputs.public_repo_name || '' }}
2733
secrets:
28-
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
34+
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}

0 commit comments

Comments
 (0)