File tree Expand file tree Collapse file tree 1 file changed +7
-24
lines changed
Expand file tree Collapse file tree 1 file changed +7
-24
lines changed Original file line number Diff line number Diff line change 1+ # .github/workflows/sync-to-production.yaml
12name : Sync main to sandbox-production
23
34on :
4- push :
5- branches :
6- - main
7-
8- permissions :
9- contents : write
10- pull-requests : write
5+ workflow_dispatch :
116
127jobs :
138 sync :
149 runs-on : ubuntu-latest
15-
10+ permissions :
11+ contents : write
1612 steps :
17- - name : Checkout code
18- uses : actions/checkout@v4
13+ - uses : livekit-examples/sandbox-deploy-action@v1
1914 with :
20- fetch-depth : 0 # Fetch all history so we can force push
21-
22- - name : Set up Git
23- run : |
24- git config --global user.name 'github-actions[bot]'
25- git config --global user.email 'github-actions[bot]@livekit.io'
26-
27- - name : Sync to sandbox-production
28- env :
29- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30- run : |
31- git checkout sandbox-production || git checkout -b sandbox-production
32- git merge --strategy-option theirs main
33- git push origin sandbox-production
15+ production_branch : ' sandbox-production'
16+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments