Federated via graft
483 B
17 lines
1name: push-github
2on:
3 push:
4 branches: [main]
5
6jobs:
7 mirror:
8 runs-on: linux-host
9 steps:
10 - name: clone and push to GitHub
11 run: |
12 set -e
13 rm -rf /tmp/graft-mirror
14 git clone --bare https://f1.cyberwild.org/forgeadmin/graft.git /tmp/graft-mirror
15 cd /tmp/graft-mirror
16 git push "https://x-access-token:${{ secrets.GH_PUSH_TOKEN }}@github.com/jeanbaptiste/graft.git" main:main
17 rm -rf /tmp/graft-mirror