Generate repository list #26486
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate repository list | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 * * * *' # Every hour | |
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: repositories.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 repos" | |
git push |