Skip to content

Commit 00099de

Browse files
committed
scope results to the repository’s default branch
1 parent 64d25a6 commit 00099de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/update-framework.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
7474
git push -f origin update-framework
7575
76-
PR_NUMBER=$(gh pr list --head "update-framework" --state open --json number --template '{{range .}}{{ .number }}{{end}}')
76+
PR_NUMBER=$(gh pr list --head "update-framework" --base "${{ github.event.repository.default_branch }}" --state open --json number --jq '.[0].number // empty')
7777
if [ -z "$PR_NUMBER" ]; then
7878
gh pr create \
7979
--title "Update wp-cli framework" \

0 commit comments

Comments
 (0)