-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (29 loc) · 821 Bytes
/
sourcecraft.yml
File metadata and controls
34 lines (29 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Mirror to SourceCraft
on:
push:
branches: [ main ]
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
fetch-depth: 0
- name: Install Git LFS
run: |
sudo apt-get update
sudo apt-get install -y git-lfs
git lfs install
git lfs pull
- name: Configure Git
run: |
git config --global user.email "github@actions"
git config --global user.name "GitHub Actions"
- name: Push to SourceCraft
run: |
git remote add mirror https://git:${SOURCECRAFT_TOKEN}@git.sourcecraft.dev/kagv13/hmp.git
git push --mirror mirror
env:
SOURCECRAFT_TOKEN: ${{ secrets.SOURCECRAFT_TOKEN }}