How to list only repositories using GitHub Actions?

Is there a way to list only repositories using GitHub Actions?

The best I’ve managed is using the advanced search to construct this:
https://github.com/search?q=org%3AMYORG+path%3A.github+language%3AYAML&type=Code

where MYORG can be replaced the organisation to be searched.

Hi @mcarans,

You can use the rest api to get the org repositories:

Command sample as below:

          curl --request GET \
             --header 'authorization: Bearer ${{ secrets.PAT1 }}' \
             --header 'content-type: application/vnd.github.nebula-preview+json' \
             --url https://api.github.com/orgs/WadeOrg/repos | jq -r '.[] | .full_name'

image

Please refer to the api doc for more details:

Thanks

1 Like

Thanks, that’s helpful.

It would be great if there were a way to do it in the UI that is less hacky than the method I used in the OP.

Hi @mcarans,

Thanks for your reply! For github actions, you should use the command to get the organization info.

For UI, you can raise a new ticket here for confirmation. :wink:

Thanks for your help!