aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-11-27 11:29:36 -0600
committerJP Dillingham <jp@dillingham.me>2025-11-27 11:29:36 -0600
commitc6e374fe2c192dfea167eb81994f745f8f2177c9 (patch)
tree1bf36ed8fb299d37a45bbb4dd072c1213fe01ca6 /.github/workflows
parentb0175a8980e4201535df2cf14fdd84cf9e857efc (diff)
downloadslskd-c6e374fe2c192dfea167eb81994f745f8f2177c9.tar.gz
mirror tweak again
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/mirror.yml20
1 files changed, 7 insertions, 13 deletions
diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml
index ed94f14a..2bf5578c 100644
--- a/.github/workflows/mirror.yml
+++ b/.github/workflows/mirror.yml
@@ -54,18 +54,12 @@ jobs:
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
+ - name: Check out GitHub Repository
+ run: |
+ git clone --mirror git@github.com:slskd/slskd
+ git for-each-ref --format="delete %(refname)" refs/pull refs/original | git update-ref --stdin
+
- name: Mirror to ${{ matrix.target.name }}
run: |
- echo "🔄 Mirroring repository to ${{ matrix.target.name }}..."
-
- # Clone the GitHub repository as a mirror (bare repo with all refs)
- git clone --mirror https://github.com/${{ github.repository }}.git mirror-repo
- cd mirror-repo
-
- # Set the push URL to the target repository
- git remote set-url --push origin ${{ matrix.target.repo }}
-
- # Push everything to the mirror (handles all branches, tags, and deletions)
- git push --mirror
-
- echo "✅ Successfully mirrored to ${{ matrix.target.name }}" \ No newline at end of file
+ git remote add mirror ${{ matrix.target.repo }}
+ git push --mirror mirror \ No newline at end of file