fix(tf): handle multiframe DeepSpin extension (#5851) #303
This file contains hidden or 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
| name: Mirror to Gitee Repo | |
| # Ref creation is also delivered as a push event, but deletion may only emit a | |
| # delete event. Keep both triggers so removed branches and tags are pruned from | |
| # the mirror without launching duplicate mirrors for ref creation. | |
| on: | |
| push: | |
| # Use positive patterns with exclusions so tag pushes can be listed below. | |
| # `branches-ignore` by itself disables all tag-triggered runs. | |
| branches: | |
| - "**" | |
| # GitHub creates these ephemeral refs while testing a merge queue entry. | |
| # They are neither source branches nor refs that Gitee should receive. | |
| - "!gh-readonly-queue/**" | |
| - "!copilot/**" | |
| - "!dependabot/**" | |
| - "!pre-commit-ci-update-config" | |
| tags: | |
| - "**" | |
| delete: | |
| # Ensures that only one mirror task will run at a time. | |
| concurrency: | |
| group: git-mirror | |
| jobs: | |
| git-mirror: | |
| # Delete events use the default branch as `github.ref`, so inspect the | |
| # payload ref to suppress only ephemeral merge-queue branch deletions. | |
| if: >- | |
| github.repository_owner == 'deepmodeling' && | |
| (github.event_name != 'delete' || | |
| !startsWith(github.event.ref, 'gh-readonly-queue/')) | |
| # This is a Docker action; ubuntu-slim does not provide a Docker daemon. | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: wearerequired/git-mirror-action@v1 | |
| env: | |
| SSH_PRIVATE_KEY: ${{ secrets.SYNC_GITEE_PRIVATE_KEY }} | |
| with: | |
| source-repo: "https://github.com/deepmodeling/deepmd-kit.git" | |
| destination-repo: "git@gitee.com:deepmodeling/deepmd-kit.git" |