From 3d99f4adb2df862ad9725c9c8ffff274a0a764d2 Mon Sep 17 00:00:00 2001 From: CKCarr <119520583+CKCarr@users.noreply.github.com> Date: Wed, 20 Dec 2023 12:13:57 -0600 Subject: [PATCH] Create sync-firebase-deploy.yml Create workflow to sync firebase_deploy branch with main --- .github/workflows/sync-firebase-deploy.yml | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/sync-firebase-deploy.yml diff --git a/.github/workflows/sync-firebase-deploy.yml b/.github/workflows/sync-firebase-deploy.yml new file mode 100644 index 00000000..478e37ff --- /dev/null +++ b/.github/workflows/sync-firebase-deploy.yml @@ -0,0 +1,26 @@ +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 'actions@github.com' + + - name: Fetch and merge changes from main + run: | + git fetch origin main + git merge origin/main + git push origin firebase_deploy