File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Automerge
2+
3+ on :
4+ workflow_dispatch :
5+ schedule :
6+ # You can setup schedule here
7+ - cron : ' 0 0 * * *'
8+
9+ env :
10+ # replace "spandey1296" with your GitHub username
11+ # replace "github.com/username/repo.git" with your GitHub repo path
12+ # do NOT replace ${{secrets.GITHUB_TOKEN}}, GitHub will take care of it
13+ MY_REPO : https://coder2hacker:${{secrets.GITHUB_TOKEN}}@github.com/coder2hacker/Explore-open-source
14+
15+ # replace "long-lived_branch_name" with your branch name
16+ MY_BRANCH : main
17+
18+ # replace it with the path to master repo
19+ MASTER_REPO : https://github.com/coder2hacker/master_repo.git
20+
21+ # replace "master" with your master branch name
22+ MASTER_BRANCH : master
23+
24+ jobs :
25+ merge :
26+ runs-on : ubuntu-latest
27+
28+ steps :
29+ - name : Merge with master
30+ run : |
31+ git clone ${{env.MY_REPO}} -b ${{main}} tmp
32+ cd tmp
33+ git config user.name "spandey1296"
34+ git config user.email "shivant47@gmail.com"
35+ git config pull.rebase false
36+ git pull ${{main}} ${{main}}
37+ git push
You can’t perform that action at this time.
0 commit comments