Skip to content

Commit

Permalink
💚 增加 CI ,支持多个 Git Repo
Browse files Browse the repository at this point in the history
  • Loading branch information
lltx committed Jun 10, 2024
1 parent 3aa6080 commit f45eb1d
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,20 @@ jobs:
gitlink:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: gitlink
uses: wearerequired/git-mirror-action@master #同步至 gitlink
- uses: wearerequired/git-mirror-action@master #同步至 gitlink
env:
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
with:
source-repo: "[email protected]:pig-mesh/pig.git"
destination-repo: "[email protected]:lengleng/pig.git"

- name: gitee
uses: wearerequired/git-mirror-action@master #同步至 gitlink
gitee:
runs-on: ubuntu-latest
container:
image: "centos:7"
steps:
- uses: wearerequired/git-mirror-action@master #同步至 gitee
env:
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
with:
source-repo: "[email protected]:pig-mesh/pig.git"
destination-repo: "[email protected]:log4j/pig.git"

0 comments on commit f45eb1d

Please sign in to comment.