From 75ac76777efb0d79248576acc7dbb76bd0ae37ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaquier=20Aur=C3=A9lien=20Tristan?= Date: Thu, 6 Jul 2023 14:15:13 +0200 Subject: [PATCH] add gh workflow to sync to ebrains mirror at each push --- .github/workflows/mirror-ebrains.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/mirror-ebrains.yml diff --git a/.github/workflows/mirror-ebrains.yml b/.github/workflows/mirror-ebrains.yml new file mode 100644 index 0000000..8526f51 --- /dev/null +++ b/.github/workflows/mirror-ebrains.yml @@ -0,0 +1,24 @@ +name: Mirror to Ebrains + +on: + push: + branches: [ master ] + +jobs: + to_ebrains: + runs-on: ubuntu-latest + steps: + - name: syncmaster + uses: wei/git-sync@v3 + with: + source_repo: "BlueBrain/BluePyMM" + source_branch: "master" + destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/BlueBrain/bluepymm.git" + destination_branch: "master" + - name: synctags + uses: wei/git-sync@v3 + with: + source_repo: "BlueBrain/BluePyMM" + source_branch: "refs/tags/*" + destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/BlueBrain/bluepymm.git" + destination_branch: "refs/tags/*" \ No newline at end of file