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 4705292 commit 0d8be21Copy full SHA for 0d8be21
action.yaml
@@ -30,8 +30,5 @@ runs:
30
ORG_NAME=$(echo "$GITHUB_REPOSITORY" | cut -d'/' -f1)
31
echo "Org name is: ${ORG_NAME}"
32
echo "Fetching repos for organization: ${{ inputs.org }}"
33
- curl -s -H "Authorization: token ${{ inputs.token }}" \
34
- -H "Accept: application/vnd.github+json" \
35
- "https://api.github.com/orgs/${{ inputs.org }}/repos?per_page=100" |
36
- jq -r '.[].full_name' > repo-list.txt
+ gh api --paginate "orgs/$ORG_NAME/repos" --jq '.[].full_name' > repo-list.txt
37
echo "Repos written to repo-list.txt"
0 commit comments