浏览代码

fix issue in update dependencies actions

Shahed Nasser 1 年之前
父节点
当前提交
5353a4e050
共有 2 个文件被更改,包括 4 次插入6 次删除
  1. 2 3
      .github/workflows/update-preview-deps-ci.yml
  2. 2 3
      .github/workflows/update-preview-deps.yml

+ 2 - 3
.github/workflows/update-preview-deps-ci.yml

@@ -33,15 +33,14 @@ jobs:
         shell: "bash"
         shell: "bash"
         run: |
         run: |
 
 
-          TITLE="chore(feat/v2-ci): updated preview dependencies [automated]"  
           # Get the list of pull requests with the specified title
           # Get the list of pull requests with the specified title
-          PR_LIST=$(gh pr list --search "$TITLE in:title" --json number)
+          PR_LIST=$(gh pr list --base feat/v2-ci --json number)
           
           
           echo "$PR_LIST"
           echo "$PR_LIST"
           
           
           # Check if any pull requests were found
           # Check if any pull requests were found
           if [ -z "$PR_LIST" ]; then
           if [ -z "$PR_LIST" ]; then
-            echo "No pull requests found with the title: $TITLE"
+            echo "No pull requests found on branch feat/v2-ci"
             exit 0
             exit 0
           fi
           fi
           
           

+ 2 - 3
.github/workflows/update-preview-deps.yml

@@ -33,15 +33,14 @@ jobs:
         shell: "bash"
         shell: "bash"
         run: |
         run: |
 
 
-          TITLE="chore(feat/v2): updated preview dependencies [automated]"
           # Get the list of pull requests with the specified title
           # Get the list of pull requests with the specified title
-          PR_LIST=$(gh pr list --search "$TITLE in:title" --json number)
+          PR_LIST=$(gh pr list --base feat/v2 --json number)
           
           
           echo "$PR_LIST"
           echo "$PR_LIST"
           
           
           # Check if any pull requests were found
           # Check if any pull requests were found
           if [ -z "$PR_LIST" ]; then
           if [ -z "$PR_LIST" ]; then
-            echo "No pull requests found with the title: $TITLE"
+            echo "No pull requests found on branch feat/v2"
             exit 0
             exit 0
           fi
           fi