diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 3df9dbb..e4ae548 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -16,6 +16,12 @@ jobs: with: fetch-depth: 0 + - name: Prepare repository for mirroring + run: | + git branch -r | grep 'origin/' | grep -v 'origin/HEAD' | while read remote; do + git branch --delete --remotes "$remote" + done + - name: Mirror to GitLab uses: pixta-dev/repository-mirroring-action@v1 with: diff --git a/.github/workflows/static.yml b/.github/workflows/pages.yml similarity index 100% rename from .github/workflows/static.yml rename to .github/workflows/pages.yml