Skip to content

Commit 63ed3e7

Browse files
Update sync-to-public.yml
1 parent 79c006d commit 63ed3e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ 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
67
workflow_dispatch:
78
inputs:
89
force_sync:
@@ -17,6 +18,8 @@ on:
1718

1819
jobs:
1920
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'
2023
uses: thoughtspot/workflows/.github/workflows/sync-to-public-mirror.yml@c19c7b395533a67a484bb86bd497aa71ed279a07
2124
with:
2225
force_sync: ${{ github.event.inputs.force_sync == 'true' }}

0 commit comments

Comments
 (0)