Skip to content

Commit db7d7a6

Browse files
committed
pull full list of repo names and output to text file
Signed-off-by: Andrew Brandt <[email protected]>
1 parent a534e79 commit db7d7a6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

action.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,12 @@ inputs:
1414
runs:
1515
using: "composite"
1616
steps:
17-
- name: List all repos in the Org
17+
- name: List all repos in org
1818
shell: bash
19+
run: |
20+
echo "Fetching repos for organization: ${{ inputs.org }}"
21+
curl -s -H "Authorization: token ${{ inputs.token }}" \
22+
-H "Accept: application/vnd.github+json" \
23+
"https://api.github.com/orgs/${{ inputs.org }}/repos?per_page=100" |
24+
jq -r '.[].full_name' > repo-list.txt
25+
echo "Repos written to repo-list.txt"

0 commit comments

Comments
 (0)