gitshark

Clone repository

git clone https://gitshark.de/git/workaround/Gitshark.git
git clone git@gitshark.de:workaround/Gitshark.git

← Commits

👷 (ci): Mirror repository to gitshark.ha1nz.de on every push

472c79483059e8439be09e07a771788ea677df6c · Michael Hainz · 2026-07-08T08:15:09Z

Changes

2 files changed, +30 -2

ADD .github/workflows/mirror.yml +24 -0
diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml
new file mode 100644
index 0000000..835d103
--- /dev/null
+++ b/.github/workflows/mirror.yml
@@ -0,0 +1,24 @@
1 +name: Mirror
2 +
3 +on:
4 + push:
5 + workflow_dispatch:
6 +
7 +jobs:
8 + mirror:
9 + runs-on: ubuntu-latest
10 + permissions:
11 + contents: read
12 + steps:
13 + - uses: actions/checkout@v7
14 + with:
15 + fetch-depth: 0
16 + - name: Push to GitShark
17 + env:
18 + GITSHARK_TOKEN: ${{ secrets.GITSHARK_TOKEN }}
19 + run: |
20 + git remote set-head origin -d
21 + git push --force --prune \
22 + "https://token:${GITSHARK_TOKEN}@gitshark.ha1nz.de/git/miggi/GitShark.git" \
23 + 'refs/remotes/origin/*:refs/heads/*' \
24 + 'refs/tags/*:refs/tags/*'
MODIFY README.md +6 -2
diff --git a/README.md b/README.md
index a8debad..9e2c14b 100644
--- a/README.md
+++ b/README.md
@@ -124,5 +124,9 @@
124 124
125 125 ## CI
126 126
127 -`.github/workflows/ci.yml`: JVM tests on every push/PR; native build + integration tests
128 -gate main-branch builds.
127 +- `.github/workflows/jvm.yml` — JVM tests on every push/PR; on main, builds and pushes the
128 + JVM container image to GHCR.
129 +- `.github/workflows/native.yml` — native build + integration tests on every push/PR.
130 +- `.github/workflows/mirror.yml` — mirrors all branches and tags to
131 + `https://gitshark.ha1nz.de/git/miggi/GitShark.git` on every push (force + prune; auth via
132 + `GITSHARK_TOKEN` repository secret holding a GitShark access token).

Keyboard shortcuts

?Show this help
g hGo home
EscClose dialog