Automerge #8
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: | |
# You can setup schedule here | |
- cron: '30 5,17 * * *' | |
env: | |
MY_REPO: https://git-elliot:${{secrets.GITHUB_TOKEN}}@github.com/osociety/vernet.git | |
MY_BRANCH: dev | |
MASTER_REPO: https://github.com/osociety/vernet.git | |
MASTER_BRANCH: main | |
jobs: | |
merge: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Merge with dev | |
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 |