Skip to content

Commit 06ab743

Browse files
kfischer-okarinRedmine Patch Meetup
authored andcommitted
Add sync with origin task
1 parent c459493 commit 06ab743

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Sync with redmine/redmine
2+
3+
on:
4+
schedule:
5+
- cron: "0 19 * * *" # 4 AM JST
6+
workflow_dispatch:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
env:
12+
REPOSITORY_ACCESS_TOKEN: ${{ secrets.REPOSITORY_ACCESS_TOKEN }}
13+
steps:
14+
- name: Clone redmine
15+
run: git clone https://[email protected]/redmine-patch-meetup/redmine.git
16+
- name: Update to latest redmine/redmine master
17+
working-directory: ./redmine
18+
run: |
19+
git checkout master
20+
git remote add redmine https://[email protected]/redmine/redmine.git
21+
git fetch redmine
22+
git reset --hard redmine/master
23+
git push origin master
24+
git checkout development
25+
git config --global user.email "[email protected]"
26+
git config --global user.name "Redmine Patch Meetup"
27+
git rebase master
28+
git push -f origin development

0 commit comments

Comments
 (0)