From 2e1b602e273fc8c104f87a2b5dc085441bde8d36 Mon Sep 17 00:00:00 2001 From: bluwy Date: Fri, 29 Nov 2024 12:32:28 +0800 Subject: [PATCH] Add safe guard --- .github/workflows/sync-examples.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-examples.yml b/.github/workflows/sync-examples.yml index c214a80fb5..0f8d42bcca 100644 --- a/.github/workflows/sync-examples.yml +++ b/.github/workflows/sync-examples.yml @@ -52,7 +52,7 @@ jobs: # to clone examples that may rely on unreleased code - name: Sync stable to latest and examples/* branches - if: steps.detect.outputs.has-changesets == 'false' && steps.pre.outputs.value == '' + if: steps.detect.outputs.has-changesets == 'false' && github.ref == 'refs/heads/main' && steps.pre.outputs.value == '' uses: bluwy/auto-branch-sync-action@v1 with: map: |