Skip to content

Commit

Permalink
CI for staging sync
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Feb 14, 2024
1 parent b392daa commit 70972cf
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/sync-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: sync-staging

on:
push:
branches:
- main

jobs:
# after main updated (merge from staging), sync staging to main
sync-staging:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure Git
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email ""
- name: Update Test Branch
run: |
git checkout main
git fetch origin
git checkout staging
git pull
git merge origin/main
git push origin staging

0 comments on commit 70972cf

Please sign in to comment.