ci: remove GitHub mirror job (manual push instead)
This commit is contained in:
@@ -155,28 +155,4 @@ jobs:
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo "Gitea release complete!"
|
echo "Gitea release complete!"
|
||||||
|
|
||||||
# Mirror to GitHub (optional - runs if GITHUB_MIRROR_TOKEN secret is set)
|
|
||||||
mirror-to-github:
|
|
||||||
name: Mirror to GitHub
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [build-and-release]
|
|
||||||
if: startsWith(github.ref, 'refs/tags/') && vars.GITHUB_MIRROR_TOKEN != ''
|
|
||||||
continue-on-error: true
|
|
||||||
steps:
|
|
||||||
- name: Mirror to GitHub
|
|
||||||
env:
|
|
||||||
GITHUB_MIRROR_TOKEN: ${{ vars.GITHUB_MIRROR_TOKEN }}
|
|
||||||
run: |
|
|
||||||
TAG=${GITHUB_REF#refs/tags/}
|
|
||||||
|
|
||||||
echo "Mirroring ${TAG} to GitHub..."
|
|
||||||
|
|
||||||
# Clone from Gitea
|
|
||||||
git clone --bare "https://git.uuxo.net/${GITHUB_REPOSITORY}.git" repo.git
|
|
||||||
cd repo.git
|
|
||||||
|
|
||||||
# Push to GitHub
|
|
||||||
git push --mirror "https://${GITHUB_MIRROR_TOKEN}@github.com/PlusOne/dbbackup.git" || echo "Mirror push failed (non-critical)"
|
|
||||||
|
|
||||||
echo "GitHub mirror complete!"
|
echo "GitHub mirror complete!"
|
||||||
Reference in New Issue
Block a user