diff --git a/.github/workflows/ebrains.yml b/.github/workflows/ebrains.yml new file mode 100644 index 00000000..2d0b5b1f --- /dev/null +++ b/.github/workflows/ebrains.yml @@ -0,0 +1,31 @@ +name: Mirror to EBRAINS + +on: + push: + branches: [ master, staging ] + +jobs: + to_ebrains: + runs-on: ubuntu-latest + steps: + - name: syncmaster + uses: wei/git-sync@v3 + with: + source_repo: "HumanBrainProject/hbp-validation-framework" + source_branch: "master" + destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/model-validation/hbp-validation-framework.git" + destination_branch: "master" + - name: syncstaging + uses: wei/git-sync@v3 + with: + source_repo: "HumanBrainProject/hbp-validation-framework" + source_branch: "staging" + destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/model-validation/hbp-validation-framework.git" + destination_branch: "staging" + - name: synctags + uses: wei/git-sync@v3 + with: + source_repo: "HumanBrainProject/hbp-validation-framework" + source_branch: "refs/tags/*" + destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/model-validation/hbp-validation-framework.git" + destination_branch: "refs/tags/*"