Skip to content

Commit 0b4af83

Browse files
authored
chore(ci): tag deployment versions (#478)
1 parent 6fdf7f0 commit 0b4af83

File tree

1 file changed

+7
-24
lines changed

1 file changed

+7
-24
lines changed
Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,16 @@
1+
# .github/workflows/sync-to-production.yaml
12
name: Sync main to sandbox-production
23

34
on:
4-
push:
5-
branches:
6-
- main
7-
8-
permissions:
9-
contents: write
10-
pull-requests: write
5+
workflow_dispatch:
116

127
jobs:
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 }}

0 commit comments

Comments
 (0)