File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Mirror to EBRAINS
2+
3+ # Configure the events that are going to trigger tha automated update of the mirror
4+ on :
5+ push :
6+ branches : [ master ]
7+
8+ # Configure what will be updated
9+ jobs :
10+ # set the job name
11+ to_ebrains :
12+ runs-on : ubuntu-latest
13+ steps :
14+ # this task will push the master branch of the source_repo (github) to the
15+ # destination_repo (ebrains gitlab)
16+ - name : syncmaster
17+ uses : wei/git-sync@v3
18+ with :
19+ source_repo : https://github.com/NeuralEnsemble/python-neo
20+ source_branch : " put the branch that will be pushed to the mirror"
21+ destination_repo : " https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/NeuralEnsemble/neo.git"
22+ destination_branch : " main"
23+ # this task will push all tags from the source_repo to the destination_repo
24+ - name : synctags
25+ uses : wei/git-sync@v3
26+ with :
27+ source_repo : https://github.com/NeuralEnsemble/python-neo
28+ source_branch : " refs/tags/*"
29+ destination_repo : " https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/NeuralEnsemble/neo.git"
30+ destination_branch : " refs/tags/*"
You can’t perform that action at this time.
0 commit comments