Skip to content

Commit e14f619

Browse files
committed
send org name to a new file
Signed-off-by: Andrew Brandt <[email protected]>
1 parent 6bdaf4f commit e14f619

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

action.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ 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
34+
cat "${ORG_NAME}" > org-name.txt
3535
echo "Fetching repos for organization: ${{ inputs.org }}"
36-
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
3737
echo "Repos written to repo-list.txt"
3838
3939
- name: Print out all repos in file
4040
shell: bash
4141
run: |
42+
echo "Org name is:"
43+
cat org-name.txt
4244
echo "Full list of repos in org:"
4345
cat repo-list.txt

0 commit comments

Comments
 (0)