Skip to content

Commit 686afea

Browse files
author
GitHub Actions
committed
Add workflow file to branch rohit-sre-github-patch-18
1 parent 150aee1 commit 686afea

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Sync Repository to Public Mirror
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
# No branches filter means it will trigger for ALL branches
7+
workflow_dispatch:
8+
inputs:
9+
force_sync:
10+
description: 'Force sync all branches'
11+
required: false
12+
default: 'true'
13+
type: boolean
14+
public_repo_name:
15+
description: 'Public repository name (leave empty to auto-derive by removing "-private")'
16+
required: false
17+
type: string
18+
19+
jobs:
20+
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@main
24+
with:
25+
force_sync: ${{ github.event.inputs.force_sync == 'true' }}
26+
public_repo_name: ${{ github.event.inputs.public_repo_name || '' }}
27+
secrets:
28+
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}

0 commit comments

Comments
 (0)