Jelajahi Sumber

fix issue in update dependencies actions

Shahed Nasser 1 tahun lalu
induk
melakukan
5353a4e050

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

@@ -33,15 +33,14 @@ jobs:
         shell: "bash"
         run: |
 
-          TITLE="chore(feat/v2-ci): updated preview dependencies [automated]"  
           # 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"
           
           # Check if any pull requests were found
           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
           fi
           

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

@@ -33,15 +33,14 @@ jobs:
         shell: "bash"
         run: |
 
-          TITLE="chore(feat/v2): updated preview dependencies [automated]"
           # 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"
           
           # Check if any pull requests were found
           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
           fi