chore: Add GitHub -> Forgejo mirror action
All checks were successful
Mirror to Forgejo / mirror-to-codeberg (push) Successful in 3s
All checks were successful
Mirror to Forgejo / mirror-to-codeberg (push) Successful in 3s
This commit is contained in:
parent
3cfcb155ad
commit
f6294cc101
1 changed files with 18 additions and 0 deletions
18
.github/workflows/mirror.yml
vendored
Normal file
18
.github/workflows/mirror.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
name: Mirror to Forgejo
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
mirror-to-codeberg:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: pixta-dev/repository-mirroring-action@v1
|
||||
if: ${{ vars.GIT_REMOTE != '' }}
|
||||
with:
|
||||
target_repo_url: ${{ vars.GIT_REMOTE }}
|
||||
ssh_private_key: ${{ secrets.GIT_SSH_PRIVATE_KEY }}
|
Loading…
Reference in a new issue