Skip to content

Commit f422371

Browse files
committed
Chore: fix pipeline to avlid generating duplicate PRs
1 parent e1e77e0 commit f422371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/generate-python-client.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
- name: 🔍 Check for existing PR
8686
if: env.version_changed == 'true'
8787
run: |
88-
PR_EXISTS=$(gh pr list --repo ${{ github.repository }} --base trunk --head "update-python-client-${{ env.VERSION }}-*" --json number --jq 'length')
88+
PR_EXISTS=$(gh pr list --repo ${{ github.repository }} --base trunk --search "update-python-client-${{ env.VERSION }} in:title" --json number --jq 'length')
8989
if [ "$PR_EXISTS" -gt 0 ]; then
9090
echo "A pull request for version ${{ env.VERSION }} already exists. Skipping update."
9191
echo "pr_exists=true" >> $GITHUB_ENV

0 commit comments

Comments
 (0)