From 93578ce67b2af205c39d8ae08afa30a4ee5c82c8 Mon Sep 17 00:00:00 2001 From: yanguoyu <841185308@qq.com> Date: Fri, 13 Oct 2023 16:03:02 +0800 Subject: [PATCH] fix: Skip if the ref name is not start with rc/ --- .github/workflows/update_valid_target.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/update_valid_target.yml b/.github/workflows/update_valid_target.yml index ba1a6a7428..e68d91ee15 100644 --- a/.github/workflows/update_valid_target.yml +++ b/.github/workflows/update_valid_target.yml @@ -2,13 +2,12 @@ name: Update ckb node assume valid target on: create: - branches: - - "rc/**" jobs: ready-for-release: name: Update ckb node assume valid target runs-on: ubuntu-latest + if: ${{ startsWith(github.ref_name, 'rc/') }} steps: - name: Create Branch uses: peterjgrainger/action-create-branch@v2.2.0