aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-11-28 17:49:10 -0600
committerJP Dillingham <jp@dillingham.me>2025-11-28 17:49:10 -0600
commit3d994c5f54e3b74f182b2b6e565d35fee4acab01 (patch)
tree81450540782e352415bba6e8dd765c941ab06d1f /.github
parent7dfd9311deb30b38856a8af92a809026c90a389d (diff)
parent7450257b3d0522b9a3e0aa326148e3491d43ce52 (diff)
downloadslskd-3d994c5f54e3b74f182b2b6e565d35fee4acab01.tar.gz
Merge remote-tracking branch 'origin' into statistics
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/mirror.yml17
1 files changed, 11 insertions, 6 deletions
diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml
index d2dc1143..f3d85a6a 100644
--- a/.github/workflows/mirror.yml
+++ b/.github/workflows/mirror.yml
@@ -1,12 +1,18 @@
name: Mirror Repository
on:
+ create:
push:
branches:
- '**' # Trigger on push to any branch
delete:
branches:
- '**' # Trigger when branches are deleted
+ workflow_dispatch:
+
+concurrency:
+ group: mirror-sync
+ cancel-in-progress: false
jobs:
mirror:
@@ -23,12 +29,6 @@ jobs:
fail-fast: false # Continue with other mirrors even if one fails
steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0 # Fetch full history for proper mirroring
- token: ${{ secrets.GITHUB_TOKEN }}
-
- name: Configure SSH
env:
SSH_KEY: ${{ secrets.GIT_MIRROR_SSH_KEY }}
@@ -59,7 +59,12 @@ jobs:
git clone --mirror git@github.com:slskd/slskd
git for-each-ref --format="delete %(refname)" refs/pull refs/original | git update-ref --stdin
+ - name: Check out repo
+ run: |
+ git clone --bare https://github.com/slskd/slskd slskd
+
- name: Mirror to ${{ matrix.target.name }}
+ working-directory: ./slskd
run: |
git remote add mirror ${{ matrix.target.repo }}
git push --mirror mirror \ No newline at end of file