Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.48 KB

README.md

File metadata and controls

53 lines (36 loc) · 1.48 KB

ea-repo-list action

This action retrieves all internal repositories from your GitHub Enterprise Account.

Inputs

enterprise

Required The name of the Enterprise Account.

token

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.

Screen Shot 2021-01-25 at 22 01 39

outputFilename

The file to write the list of repositories to.

ghes

The URL to the GHES instance e.g. https://my-ghes.com

Outputs

repo-list

An array containing the list of internal repositories for each organization of the Enterprise Account.

Example usage

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