Automerge #28
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: | |
schedule: | |
- cron: '0 0 * * 0' | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
type: choice | |
options: | |
- info | |
- warning | |
- debug | |
env: | |
MY_REPO: https://Arthapz:${{secrets.GITHUB_TOKEN}}@github.com/TapzCrew/StormKit.git | |
MY_BRANCH: develop | |
MASTER_REPO: https://Arthapz:${{secrets.GITHUB_TOKEN}}@github.com/TapzCrew/StormKit.git | |
MASTER_BRANCH: main | |
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 "arthur.laurent4@gmail.com" | |
git config pull.rebase false | |
git pull ${{env.MASTER_REPO}} ${{env.MASTER_BRANCH}} | |
git push | |