Sync Master #114
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: Sync Master | |
on: | |
workflow_run: | |
workflows: ["Deploy Groups (livenet)", "Deploy Talk (livenet)"] | |
types: | |
- completed | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
name: "Syncs the latest livenet deploy from develop to master" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ssh-key: ${{ secrets.DEPLOY_KEY }} | |
- name: Set Git config | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "Github Actions" | |
- name: Merge Dev to Master | |
run: | | |
git fetch --unshallow | |
git checkout staging | |
git pull | |
git checkout master | |
git pull | |
git merge --no-ff staging | |
git push |