Skip to content

Commit 72275b6

Browse files
authored
chore(ci): tag deployment versions (#269)
1 parent 4da1f83 commit 72275b6

File tree

1 file changed

+6
-26
lines changed

1 file changed

+6
-26
lines changed
Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,16 @@
1-
# .github/workflows/sync-main-to-sandbox-production.yml
2-
1+
# .github/workflows/sync-to-production.yaml
32
name: Sync main to sandbox-production
43

54
on:
6-
# push:
7-
# branches:
8-
# - main
95
workflow_dispatch:
106

11-
permissions:
12-
contents: write
13-
pull-requests: write
14-
157
jobs:
168
sync:
179
runs-on: ubuntu-latest
18-
10+
permissions:
11+
contents: write
1912
steps:
20-
- name: Checkout code
21-
uses: actions/checkout@v4
13+
- uses: livekit-examples/sandbox-deploy-action@v1
2214
with:
23-
fetch-depth: 0 # Fetch all history so we can force push
24-
25-
- name: Set up Git
26-
run: |
27-
git config --global user.name 'github-actions[bot]'
28-
git config --global user.email 'github-actions[bot]@livekit.io'
29-
30-
- name: Sync to sandbox-production
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
run: |
34-
git checkout sandbox-production || git checkout -b sandbox-production
35-
git merge --strategy-option theirs main
36-
git push origin sandbox-production
15+
production_branch: 'sandbox-production'
16+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)