Automerge #172
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: Automerge | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
env: | |
MY_REPO: https://coral-xyz:${{secrets.GITHUB_TOKEN}}@github.com/coral-xyz/backpack.git | |
MY_BRANCH: production | |
MASTER_REPO: https://github.com/coral-xyz/backpack.git | |
MASTER_BRANCH: master | |
jobs: | |
merge: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Merge with master | |
run: | | |
git clone ${{env.MY_REPO}} -b ${{env.MY_BRANCH}} tmp | |
cd tmp | |
git config user.name "Automerge Bot" | |
git config user.email "[email protected]" | |
git config pull.rebase false | |
git pull ${{env.MASTER_REPO}} ${{env.MASTER_BRANCH}} | |
git push |