Merge pull request #2 from CSGJusticeCenter/develop #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Merge main into develop to keep in sync | |
on: | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
merge: | |
runs-on: ubuntu-latest | |
# only run this action for the template repo | |
if: github.event.repository.name == '_project_template' | |
steps: | |
- name: Checkout develop branch | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # include all branches and commit history | |
ref: develop | |
- name: Merge main with develop and push develop to GitHub | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
git merge remotes/origin/main | |
git push origin develop |