Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 6 additions & 26 deletions .github/workflows/sync-to-production.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,16 @@
# .github/workflows/sync-main-to-sandbox-production.yml

# .github/workflows/sync-to-production.yaml
name: Sync main to sandbox-production

on:
# push:
# branches:
# - main
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
sync:
runs-on: ubuntu-latest

permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: livekit-examples/sandbox-deploy-action@v1
with:
fetch-depth: 0 # Fetch all history so we can force push

- name: Set up Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@livekit.io'

- name: Sync to sandbox-production
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git checkout sandbox-production || git checkout -b sandbox-production
git merge --strategy-option theirs main
git push origin sandbox-production
production_branch: 'sandbox-production'
token: ${{ secrets.GITHUB_TOKEN }}