DO NOT MERGE, JUST FOR TESTING #130
This file contains hidden or 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 to preview | |
| on: | |
| pull_request: | |
| branches: [main] | |
| types: [closed] | |
| jobs: | |
| merge-main-to-preview: | |
| if: github.event.pull_request.merged == true | |
| timeout-minutes: 2 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set Git config | |
| run: | | |
| git config --local user.email "actions@github.com" | |
| git config --local user.name "Github Actions" | |
| - name: Merge main to preview | |
| run: | | |
| git fetch --unshallow | |
| git checkout preview | |
| git pull | |
| git merge --no-ff main -m "Auto-merge main to preview" | |
| git push |