Skip to content

fix: preserve v1.0a14 feature IDs #32

fix: preserve v1.0a14 feature IDs

fix: preserve v1.0a14 feature IDs #32

name: '[mirror] push to mirror'
on:
push:
branches: ["main"]
tags: ["**"]
env:
EBRAINS_GITLAB_REPO: ri/tech-hub/apps/siibra/siibra-python-mirror.git
jobs:
# n.b. we use access token, rather than https://github.com/valtech-sd/git-sync
# because it does not seem possible to add project wide ssh key
# and using personal key is not very feasible
push_to_mirror:
if: ${{ vars.EBRAINS_GITLAB_HOST != '' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: mirror to remote
run: |
git fetch --tags -f
git fetch origin main
if ! git ls-remote ebrains > /dev/null; then git remote add ebrains https://jugitpusher:${{ secrets.EBRAINS_GITLAB_PUSH_TOKEN }}@${{ vars.EBRAINS_GITLAB_HOST }}/${{ env.EBRAINS_GITLAB_REPO }}; fi
git push ebrains --tags -f
git push ebrains HEAD:main -f