Skip to content

Create sync-firebase-deploy.yml #1

Create sync-firebase-deploy.yml

Create sync-firebase-deploy.yml #1

name: Sync firebase_deploy with Main Branch
on:
push:
branches:
- main
jobs:
sync-branch:
runs-on: ubuntu-latest
steps:
- name: Checkout firebase_deploy branch
uses: actions/checkout@v2
with:
ref: firebase_deploy
- name: Set up Git
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
- name: Fetch and merge changes from main
run: |
git fetch origin main
git merge origin/main
git push origin firebase_deploy