Skip to content

Staging (#2035)

Staging (#2035) #83

name: 'Propagate Main Branch Changes'
on:
push:
branches:
- main
jobs:
main-push-sync:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: staging
fetch-depth: 0
token: ${{ secrets.PLN_BOT_TOKEN }}
- name: Set Git config
run: |
git config --local user.email "[email protected]"
git config --local user.name "PLN-Helper"
- name: Rebase the `main` branch onto the `staging` branch
run: |
git rebase origin/main
git push --force
- name: Rebase the `staging` branch onto the `develop` branch
run: |
git checkout develop
git rebase origin/staging
git push --force