Skip to content

Commit 284528f

Browse files
authored
Fix update-framework workflow when there is an existing PR (#1083)
1 parent dbda1d5 commit 284528f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ concurrency:
1717

1818
permissions:
1919
contents: write
20+
issues: read
2021
pull-requests: write
2122

2223
jobs:
@@ -72,7 +73,7 @@ jobs:
7273
7374
git push -f origin update-framework
7475
75-
PR_NUMBER=$(gh pr list --head update-framework --json number --jq '.[0].number // empty')
76+
PR_NUMBER=$(gh pr list --head "update-framework" --state open --template '{{range .}}{{ .number }}{{end}}')
7677
if [ -z "$PR_NUMBER" ]; then
7778
gh pr create \
7879
--title "Update wp-cli framework" \

0 commit comments

Comments
 (0)