mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
29 lines
647 B
YAML
29 lines
647 B
YAML
name: Mirror Gitlab repo
|
|
|
|
# Every hour
|
|
on:
|
|
schedule:
|
|
- cron: "0 * * * *"
|
|
|
|
jobs:
|
|
mirror-gitlab-repo:
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Clone Gitlab repo
|
|
run: git lfs install;
|
|
git clone https://gitlab.com/veloren/veloren.git;
|
|
|
|
- name: Uninstall LFS
|
|
run: cd veloren;
|
|
git lfs uninstall;
|
|
git lfs migrate export --include="*" --everything;
|
|
|
|
- name: Push changes
|
|
uses: ad-m/github-push-action@master
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
branch: master
|
|
force: true
|
|
tags: true
|
|
directory: veloren |