aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/mirror.yml10
1 files changed, 3 insertions, 7 deletions
diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml
index 3a949fb8..0d11a6b7 100644
--- a/.github/workflows/mirror.yml
+++ b/.github/workflows/mirror.yml
@@ -54,16 +54,12 @@ jobs:
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
- - name: Check out GitHub Repository
- uses: actions/checkout@v6
- with:
- fetch-depth: 0
-
- - name: Clean up hidden GitHub refs
+ - name: Check out repo
run: |
- git for-each-ref --format="delete %(refname)" refs/pull refs/original | git update-ref --stdin
+ 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