Merge pull request #220 from pysio2007/renovate/vuepress-theme-hope-2.x #123
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 通过 Github action, 在仓库的每一次 commit 后自动同步到 GitLab 上 | |
name: sync2gitlab | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
repo-sync: | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SERVER_PRIVATE_KEY }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Configure Git | |
run: | | |
git config --global --add safe.directory /github/workspace | |
- name: sync github -> gitee | |
uses: wearerequired/git-mirror-action@master | |
if: env.SSH_PRIVATE_KEY | |
with: | |
source-repo: "git@github.com:${{ github.repository }}.git" | |
destination-repo: "git@git.pysio.online:pysio/Vue-blog.git" |