Fix: sparseindex cache broken by 1eeb56e682b3c1764d86d0ffa2f05dcb8bb6… #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |