From c838a0eeb1293b1f0009fe96106308b94717bc0c Mon Sep 17 00:00:00 2001 From: "njzjz-bot (driven by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.5))[bot]" <48687836+njzjz-bot@users.noreply.github.com> Date: Sun, 12 Jul 2026 17:39:29 +0000 Subject: [PATCH 1/2] ci: fix Gitee mirror workflow triggers Authored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.6-terra) --- .github/workflows/mirror_gitee.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/mirror_gitee.yml b/.github/workflows/mirror_gitee.yml index b10e2be62e..d8eb414a36 100644 --- a/.github/workflows/mirror_gitee.yml +++ b/.github/workflows/mirror_gitee.yml @@ -1,13 +1,21 @@ name: Mirror to Gitee Repo +# A ref deletion is also delivered as a push event. Keeping one trigger avoids +# launching duplicate mirrors for the same ref change. on: push: - branches-ignore: - - "copilot/**" - - "dependabot/**" - - "pre-commit-ci-update-config" - delete: - create: + # 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: + - "**" # Ensures that only one mirror task will run at a time. concurrency: @@ -16,7 +24,8 @@ concurrency: jobs: git-mirror: if: github.repository_owner == 'deepmodeling' - runs-on: ubuntu-slim + # 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: From aea80e393fa34002688c632aa0e77ffdaef35974 Mon Sep 17 00:00:00 2001 From: njzjz-bot Date: Mon, 13 Jul 2026 19:57:24 +0800 Subject: [PATCH 2/2] fix(ci): retain Gitee mirror deletions Restore the delete event so branch and tag removals are mirrored immediately. Filter merge-queue deletion events using the payload ref because delete workflows expose the default branch through github.ref. Coding-Agent: Codex Codex-Version: codex-cli 0.144.1 Model: gpt-5.6-sol Reasoning-Effort: xhigh --- .github/workflows/mirror_gitee.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mirror_gitee.yml b/.github/workflows/mirror_gitee.yml index d8eb414a36..0d7205a03e 100644 --- a/.github/workflows/mirror_gitee.yml +++ b/.github/workflows/mirror_gitee.yml @@ -1,7 +1,8 @@ name: Mirror to Gitee Repo -# A ref deletion is also delivered as a push event. Keeping one trigger avoids -# launching duplicate mirrors for the same ref change. +# 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. @@ -16,6 +17,7 @@ on: - "!pre-commit-ci-update-config" tags: - "**" + delete: # Ensures that only one mirror task will run at a time. concurrency: @@ -23,7 +25,12 @@ concurrency: jobs: git-mirror: - if: github.repository_owner == 'deepmodeling' + # 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: