File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments