Skip to content

Commit 9266796

Browse files
committed
auto sync #3
1 parent bc7185d commit 9266796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/sync.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ jobs:
5757
- name: Check if target_sync_branch exists in the remote
5858
id: check-branch-exists
5959
run: |
60-
# grep -qE 使用了 -E 参数来启用扩展的正则表达式, 并且使用了 $ 符号来确保匹配的字符串以 main 结尾, 达到精准匹配的目的
61-
if git ls-remote --heads origin | grep -qE 'refs/heads/${{ inputs.target_sync_branch }}$'; then
60+
# 使用了 -E 参数来启用扩展的正则表达式, 并且使用了 $ 符号来确保匹配的字符串以 main 结尾, 达到精准匹配的目的
61+
if git ls-remote --heads origin | grep -E 'refs/heads/${{ inputs.target_sync_branch }}$'; then
6262
echo "branch_exists=true" >> $GITHUB_OUTPUT
6363
echo "Remote branch ${{ inputs.target_sync_branch }} exists."
6464
git checkout ${{ inputs.target_sync_branch }}

0 commit comments

Comments
 (0)