mirror of
https://github.com/Mail-0/Zero.git
synced 2026-06-28 23:06:54 +00:00
chore: add CI to sync to main branch (#1091)
This commit is contained in:
35
.github/workflows/sync-production.yml
vendored
Normal file
35
.github/workflows/sync-production.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Sync Production
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- staging
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
sync-branches:
|
||||
runs-on: ubuntu-latest
|
||||
name: Syncing branches
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Opening pull request
|
||||
id: pull
|
||||
uses: JDTX0/branch-sync@v1.5.1
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
FROM_BRANCH: 'staging'
|
||||
TO_BRANCH: 'main'
|
||||
PULL_REQUEST_TITLE: 'Deploy to production (Automated)'
|
||||
CONTENT_COMPARISON: true
|
||||
PULL_REQUEST_IS_DRAFT: true
|
||||
Reference in New Issue
Block a user