diff --git a/.github/workflows/ebrains-push.yml b/.github/workflows/ebrains-push.yml new file mode 100644 index 0000000000000000000000000000000000000000..a02aefa0861570d18b832061fded5e4716da2a88 --- /dev/null +++ b/.github/workflows/ebrains-push.yml @@ -0,0 +1,31 @@ +name: Mirror to EBRAINS + +on: + push: + branches: [ master ] + +jobs: + sync_to_ebrains: + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'didi-hou' }} + steps: + - name: Harden Runner + uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 + with: + egress-policy: audit + disable-telemetry: true + + - name: sycnmaster + uses: wei/git-sync@55c6b63b4f21607da0e9877ca9b4d11a29fc6d83 + with: + source_repo: "INM-6/multi-area-model" + source_branch: "master" + destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/didi-hou/multi-area-model.git" + destination_branch: "master" + - name: synctags + uses: wei/git-sync@55c6b63b4f21607da0e9877ca9b4d11a29fc6d83 + with: + source_repo: "INM-6/multi-area-model" + source_branch: "refs/tags/*" + destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/didi-hou/multi-area-model.git" + destination_branch: "refs/tags/*" \ No newline at end of file