Skip to content

Commit

Permalink
using github cli
Browse files Browse the repository at this point in the history
  • Loading branch information
amankumarrr committed Aug 14, 2023
1 parent 1353f62 commit 3362dcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/check-active-prs-and-slots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ jobs:
- name: Get list of active PRs
id: prList
run: |
$active_prs=$(curl -s "https://api.github.com/repos/SSWConsulting/SSW.Website/pulls?state=open" | jq -r '.[].number')
$active_prs=$(gh pr list --state open | awk '{print $1}')
echo $active_prs
echo "active_prs=$active_prs" >> $env:GITHUB_OUTPUT
- name: Compare PRs with Slots
Expand Down

0 comments on commit 3362dcf

Please sign in to comment.