Merge to Deploy on Release #5
Workflow file for this run
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 to Deploy on Release | |
on: | |
release: | |
types: [created] | |
jobs: | |
merge_to_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set git user and email | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
- name: Fetch latest changes | |
run: git fetch --prune --unshallow | |
- name: Checkout deploy branch | |
run: git checkout deploy | |
- name: Merge main into deploy | |
run: | | |
git merge origin/main --no-ff --no-edit | |
git push origin deploy |