name: Mirror on: push: branches: [main] tags: ["v*"] jobs: mirror-github: name: Mirror to GitHub runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Push to GitHub env: GH_MIRROR_TOKEN: ${{ secrets.GH_MIRROR_TOKEN }} run: | git remote add github https://x-access-token:${GH_MIRROR_TOKEN}@github.com/CircuitForgeLLC/snipe.git git push github --mirror mirror-codeberg: name: Mirror to Codeberg runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Push to Codeberg env: CODEBERG_MIRROR_TOKEN: ${{ secrets.CODEBERG_MIRROR_TOKEN }} run: | git remote add codeberg https://CircuitForge:${CODEBERG_MIRROR_TOKEN}@codeberg.org/CircuitForge/snipe.git git push codeberg --mirror