Skip to content

Commit

Permalink
Test syncing job
Browse files Browse the repository at this point in the history
  • Loading branch information
michalinacienciala committed Oct 20, 2023
1 parent d3bf297 commit b51b25d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/sync-branches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Update staging and production environments

on:
push:
branches:
- stage-live

jobs:
sync-stage-live-to-stage-fork:
if: github.ref == 'refs/heads/stage-live'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Sync `stage-fork` with `stage-live`
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
git checkout stage-live
git pull --all
git checkout stage-fork
git merge origin/stage-live
git push

0 comments on commit b51b25d

Please sign in to comment.