This action retrieves all internal
repositories from your GitHub Enterprise Account.
Required The name of the Enterprise Account.
Required A GitHub Personal Access Token allowing to browse the Enterprise Account thanks to the read:org
and read:enterprise
permissions. Note that this token must be allowed with all SAML enabled organizations.
The file to write the list of repositories to.
The URL to the GHES instance e.g. https://my-ghes.com
An array containing the list of internal
repositories for each organization of the Enterprise Account.
jobs:
repo-list:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get the repos
uses: helaili/ea-repo-list@master
with:
enterprise: octodemo
outputFilename: repos.json
token: ${{secrets.GH_EA_TOKEN}}
- name: Save the repos
run: |
git config user.name github-actions
git config user.email [email protected]
git add .
git commit --allow-empty -m "latest list of repositories"
git push