diff --git a/.github/workflows/repo_sync.yml b/.github/workflows/repo_sync.yml index 9ca91466..14032bba 100644 --- a/.github/workflows/repo_sync.yml +++ b/.github/workflows/repo_sync.yml @@ -14,6 +14,7 @@ jobs: PAT: ${{ secrets.PAT }} #此处PAT需要申请,教程详见:https://www.jianshu.com/p/bb82b3ad1d11 dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} # 我自己同步到gitee使用,其他人可忽略 runs-on: ubuntu-latest + if: github.event.repository.owner.id == github.event.sender.id steps: - uses: actions/checkout@v2 with: