Skip to content

Commit

Permalink
Add GitHub workflow for syncing main to sandbox-production (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocupe authored Sep 13, 2024
1 parent 64bc61e commit 6fd2550
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/sync-to-production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Sync main to sandbox-production

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
sync:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
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

0 comments on commit 6fd2550

Please sign in to comment.