Skip to content

change sync direction to latest -> develop (#835) #4

change sync direction to latest -> develop (#835)

change sync direction to latest -> develop (#835) #4

Workflow file for this run

name: Sync develop
on:
push:
branches: [latest]
defaults:
run:
shell: bash
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Merge Branches
run: |
git config user.name github-actions
git config user.email [email protected]
git fetch
git checkout latest
git pull
git checkout develop
git pull
git merge latest
# note that this shouldn't run if 'merge branches' fails, which it will happen when
# there are merge conflicts.
- name: Sync develop
run: |
git push