Skip to content

Commit

Permalink
feat(workflows): Add mirror workflow for repository mirroring
Browse files Browse the repository at this point in the history
- Added a new workflow file `mirror.yml` for mirroring the repository
- Added job `to_gitlab` with steps for mirroring to GitLab
  • Loading branch information
guanguans committed Apr 12, 2024
1 parent 9293b40 commit 4824000
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: mirror

on: [ push, delete ]

jobs:
to_gitlab:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url:
[email protected]:yzmguanguan/favorite-link.git
ssh_private_key:
${{ secrets.GITLAB_SSH_PRIVATE_KEY }}

0 comments on commit 4824000

Please sign in to comment.