Skip to content

Commit e3efdf6

Browse files
authored
automation pull request and merge request
1 parent c0e175f commit e3efdf6

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/automerge.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 "[email protected]"
35+
git config pull.rebase false
36+
git pull ${{main}} ${{main}}
37+
git push

0 commit comments

Comments
 (0)