Skip to content

Commit

Permalink
Add GH action to sync repository to EBRAINS Gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
apdavison committed May 23, 2023
1 parent 0390738 commit 09f2934
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ebrains.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Mirror to EBRAINS

# Configure the events that are going to trigger tha automated update of the mirror
on:
push:
branches: [ master ]

# Configure what will be updated
jobs:
# set the job name
to_ebrains:
runs-on: ubuntu-latest
steps:
# this task will push the master branch of the source_repo (github) to the
# destination_repo (ebrains gitlab)
- name: syncmaster
uses: wei/git-sync@v3
with:
source_repo: https://github.com/NeuralEnsemble/PyNN
source_branch: "master"
destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/NeuralEnsemble/PyNN.git"
destination_branch: "main"
# this task will push all tags from the source_repo to the destination_repo
- name: synctags
uses: wei/git-sync@v3
with:
source_repo: https://github.com/NeuralEnsemble/PyNN
source_branch: "refs/tags/*"
destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/NeuralEnsemble/PyNN.git"
destination_branch: "refs/tags/*"

0 comments on commit 09f2934

Please sign in to comment.