Skip to content

Commit

Permalink
ebrains Phase 3: Mirror Elephant to gitlab.ebrains.eu (NeuralEnsemble…
Browse files Browse the repository at this point in the history
…#486)

* added ebrains.yml to push master to ebrains gitlab

* update to new destination repo, "NeuralEnsemble"

* removed comments, added condition to run workflow only if executed on NeuralEnsemble/elephant repo
  • Loading branch information
Moritz-Alexander-Kern committed Sep 22, 2022
1 parent 73e8a5f commit 5127aba
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ebrains.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Mirror to EBRAINS

on:
push:
branches: [ master ]

jobs:
sync_to_ebrains:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'NeuralEnsemble' }}
steps:
- name: syncmaster
uses: wei/git-sync@v3
with:
source_repo: "NeuralEnsemble/elephant"
source_branch: "master"
destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/neuralensemble/elephant.git"
destination_branch: "master"

- name: synctags
uses: wei/git-sync@v3
with:
source_repo: "NeuralEnsemble/elephant"
source_branch: "refs/tags/*"
destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/neuralensemble/elephant.git"
destination_branch: "refs/tags/*"

0 comments on commit 5127aba

Please sign in to comment.