mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
feat: Add GitLab sync
This commit is contained in:
parent
68656f2b40
commit
cdcfb4e5b4
1 changed files with 26 additions and 0 deletions
26
.github/workflows/backup.yml
vendored
Normal file
26
.github/workflows/backup.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
name: Back up code to GitLab and other sources
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 2 * * *' # Run every day at 2 AM
|
||||||
|
workflow_dispatch: # Allow manual trigger
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
push-to-gitlab:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository == 'goatcorp/Dalamud'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout the repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- uses: webfactory/ssh-agent@v0.9.0
|
||||||
|
with:
|
||||||
|
ssh-private-key: ${{ secrets.GITLAB_SYNC_KEY }}
|
||||||
|
|
||||||
|
- name: Add remote & push
|
||||||
|
run: |
|
||||||
|
git remote add gitlab git@gitlab.com:goatcorp/Dalamud.git
|
||||||
|
git push gitlab --all --force
|
||||||
Loading…
Add table
Add a link
Reference in a new issue