From 0b4af83a3f64c2e56151f69cbbc27a46f64ecb47 Mon Sep 17 00:00:00 2001 From: Tobias Fried Date: Tue, 9 Sep 2025 00:48:31 -0600 Subject: [PATCH] chore(ci): tag deployment versions (#478) --- .github/workflows/sync-to-production.yaml | 31 +++++------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/.github/workflows/sync-to-production.yaml b/.github/workflows/sync-to-production.yaml index 03acb19..3922a1b 100644 --- a/.github/workflows/sync-to-production.yaml +++ b/.github/workflows/sync-to-production.yaml @@ -1,33 +1,16 @@ +# .github/workflows/sync-to-production.yaml name: Sync main to sandbox-production on: - push: - branches: - - main - -permissions: - contents: write - pull-requests: write + workflow_dispatch: 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 }}