Add GitHub Actions workflow for repository mirroring

This commit is contained in:
2026-01-16 21:51:38 +00:00
committed by GitHub
parent 17a97eddb1
commit 5faefc66ce

26
.github/workflows/mirror vendored Normal file
View File

@@ -0,0 +1,26 @@
name: mirror-repository
on:
push:
branches:
- '**'
workflow_dispatch:
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Mirror repository
uses: yesolutions/mirror-action@v0.7.0
with:
REMOTE_NAME: git
REMOTE: https://git.wardcrew.com/git/tustu.git
GIT_USERNAME: git
GIT_PASSWORD: 4wHhnUX7n7pVaFZi
PUSH_ALL_REFS: true
GIT_PUSH_ARGS: --tags --force --prune