Skip to content

Commit 10a94fa

Browse files
authored
Create ebrains.yml
1 parent 8428d44 commit 10a94fa

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ebrains.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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/*"

0 commit comments

Comments
 (0)