Skip to content

Mirror GitLab Repository #316

Mirror GitLab Repository

Mirror GitLab Repository #316

Workflow file for this run

name: Mirror GitLab Repository
on:
schedule:
- cron: '0 0 * * *' # Triggers at midnight every day
workflow_dispatch:
jobs:
mirror-and-publish:
runs-on: ubuntu-latest
steps:
- name: Clone repository from GitLab
run: |
git clone -b master https://git.scicore.unibas.ch/schwede/mobius.git /tmp/repo
- name: GitHub config
run: |
cd /tmp/repo
git config --local user.email env.EMAIL
git config --local user.name env.USERNAME
git remote set-url origin https://jeeberhardt:[email protected]/jeeberhardt/mobius
env:
TOKEN: ${{ secrets.TOKEN }}
- name: Push changes to GitHub
run: |
cd /tmp/repo
git push origin master