File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 4141 sudo chmod +x /usr/bin/yq
4242 yq --version # confirm installed
4343
44+ - name : List all repos in org
45+ shell : bash
46+ env :
47+ GH_TOKEN : ${{ inputs.token }}
48+ run : |
49+ ORG_NAME=$(echo "$GITHUB_REPOSITORY" | cut -d'/' -f1)
50+ echo "Org name is: ${ORG_NAME}"
51+ echo "${ORG_NAME}" > org-name.txt
52+ echo "Fetching repos for organization: ${{ inputs.org }}"
53+ gh api --paginate "orgs/$ORG_NAME/repos" --jq '.[].name' > repo-list.txt
54+ echo "Repos written to repo-list.txt"
55+
4456 - name : Extract property names into a JSON array
4557 shell : bash
4658 env :
5466
5567 echo "Property names written to property-names.json"
5668
57- - name : List all repos in org
58- shell : bash
59- env :
60- GH_TOKEN : ${{ inputs.token }}
61- run : |
62- ORG_NAME=$(echo "$GITHUB_REPOSITORY" | cut -d'/' -f1)
63- echo "Org name is: ${ORG_NAME}"
64- echo "${ORG_NAME}" > org-name.txt
65- echo "Fetching repos for organization: ${{ inputs.org }}"
66- gh api --paginate "orgs/$ORG_NAME/repos" --jq '.[].name' > repo-list.txt
67- echo "Repos written to repo-list.txt"
68-
6969 - name : Print out all repos in file
7070 shell : bash
7171 run : |
You can’t perform that action at this time.
0 commit comments