We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b22cb68 commit 20dad04Copy full SHA for 20dad04
.github/workflows/learn-github-actions.yml
@@ -40,7 +40,7 @@ jobs:
40
- name: Wait for approval
41
run: |
42
while true; do
43
- status=$(gh pr view $PR_NUMBER --json reviews | jq -r '.reviews[] | select(.state == "APPROVED")')
+ status=$(curl -H "Authorization: token $GH_TOKEN" -s https://api.github.com/repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER/reviews | jq -r '.[] | select(.state == "APPROVED")')
44
if [ "$status" != "" ]; then
45
break
46
fi
0 commit comments