Skip to content

Commit 6bdaf4f

Browse files
committed
add printout
Signed-off-by: Andrew Brandt <[email protected]>
1 parent 4ab7b3d commit 6bdaf4f

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
@@ -31,6 +31,13 @@ runs:
3131
run: |
3232
ORG_NAME=$(echo "$GITHUB_REPOSITORY" | cut -d'/' -f1)
3333
echo "Org name is: ${ORG_NAME}"
34+
cat "${ORG_NAME}" > repo-list.txt
3435
echo "Fetching repos for organization: ${{ inputs.org }}"
35-
gh api --paginate "orgs/$ORG_NAME/repos" --jq '.[].full_name' > repo-list.txt
36+
gh api --paginate "orgs/$ORG_NAME/repos" --jq '.[].full_name' >> repo-list.txt
3637
echo "Repos written to repo-list.txt"
38+
39+
- name: Print out all repos in file
40+
shell: bash
41+
run: |
42+
echo "Full list of repos in org:"
43+
cat repo-list.txt

0 commit comments

Comments
 (0)