mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
Add GitHub Actions workflow for repository mirroring
This commit is contained in:
26
.github/workflows/mirrorremote.yml
vendored
Normal file
26
.github/workflows/mirrorremote.yml
vendored
Normal 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: mirror
|
||||
REMOTE: https://git.wardcrew.com/username/metabuilder.git
|
||||
GIT_USERNAME: username
|
||||
GIT_PASSWORD: password
|
||||
PUSH_ALL_REFS: true
|
||||
GIT_PUSH_ARGS: --tags --force --prune
|
||||
Reference in New Issue
Block a user