ci: create a GitHub action which mirrors contents of the repository to SVR.JS Git server

This commit is contained in:
Dorian Niemiec 2024-09-07 07:42:42 +02:00 committed by GitHub
parent 86c994be45
commit 07b9c41920
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

19
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,19 @@
# Sync repo to the Codeberg mirror
name: Repo sync GitHub -> SVR.JS Git server
on:
push:
branches:
- '**'
jobs:
svrjsgit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: spyoungtech/mirror-action@v0.5.1
with:
REMOTE: "https://git.svrjs.org/svrjs/svrjs.git"
GIT_USERNAME: github-mirror
GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }}